OSDN Git Service
(root)
/
meshio
/
pymeshio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add pmxbuilder
[meshio/pymeshio.git]
/
pymeshio
/
pmx
/
__init__.py
diff --git
a/pymeshio/pmx/__init__.py
b/pymeshio/pmx/__init__.py
index
90caeb2
..
0bc1dfc
100644
(file)
--- a/
pymeshio/pmx/__init__.py
+++ b/
pymeshio/pmx/__init__.py
@@
-132,7
+132,7
@@
class Material(object):
'toon_sharing_flag',
\r
'toon_texture_index',
\r
'comment',
\r
'toon_sharing_flag',
\r
'toon_texture_index',
\r
'comment',
\r
- '
ind
ex_count',
\r
+ '
vert
ex_count',
\r
]
\r
def __init__(self,
\r
name: str,
\r
]
\r
def __init__(self,
\r
name: str,
\r
@@
-167,7
+167,12
@@
class Material(object):
#
\r
self.toon_texture_index=None
\r
self.comment=''
\r
#
\r
self.toon_texture_index=None
\r
self.comment=''
\r
- self.index_count=0
\r
+ self.vertex_count=0
\r
+
\r
+ def __str__(self):
\r
+ return ("<pmx.Material {name}>".format(
\r
+ name=self.english_name
\r
+ ))
\r
\r
\r
class Deform(object):
\r
\r
\r
class Deform(object):
\r
@@
-179,9
+184,9
@@
class Bdef1(object):
\r
Attributes: see __init__
\r
"""
\r
\r
Attributes: see __init__
\r
"""
\r
- __slots__=[ '
bone_index
']
\r
- def __init__(self,
bone_index
: int):
\r
- self.
bone_index=bone_index
\r
+ __slots__=[ '
index0
']
\r
+ def __init__(self,
index0
: int):
\r
+ self.
index0=index0
\r
\r
\r
class Bdef2(object):
\r
\r
\r
class Bdef2(object):
\r
@@
-501,3
+506,10
@@
class Model(object):
self.rigidbodies=[]
\r
self.joints=[]
\r
\r
self.rigidbodies=[]
\r
self.joints=[]
\r
\r
+ def __str__(self):
\r
+ return ('<pmx-{version} "{name}" {vertices}vertices>'.format(
\r
+ version=self.version,
\r
+ name=self.english_name,
\r
+ vertices=len(self.vertices)
\r
+ ))
\r
+
\r