Skip to content

Commit

Permalink
minor edit
Browse files Browse the repository at this point in the history
  • Loading branch information
lejafar committed Aug 28, 2018
1 parent 479c347 commit 08bdc16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions openctm/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ class CTM:
Object that encapsulates a CTM file
"""

def __init__(self, _vertices, _faces, _normals=None, _filename=""):
def __init__(self, _vertices, _faces, _normals=None):
self.vertices = _vertices
self.faces = _faces
self.normals = _normals
self.filename = _filename

def __eq__(self, other):
return (self.vertices == other.vertices).all() and (self.faces == other.faces).all()
Expand Down Expand Up @@ -72,7 +71,7 @@ def export_mesh(_ctm, _filename):
for i in range(face_count * 3):
p_faces[i] = CTMuint(faces[i])

if _ctm.normals:
if _ctm.normals is not None:
normal_count = len(_ctm.normals)
normals = _ctm.normals.reshape((-1, 1))
p_normals = ctypes.cast((CTMfloat * normal_count * 3)(), ctypes.POINTER(CTMfloat))
Expand Down
2 changes: 1 addition & 1 deletion openctm/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.8'
__version__ = '1.0.9'

0 comments on commit 08bdc16

Please sign in to comment.