Skip to content
Browse files

fixed another bug

  • Loading branch information...
1 parent 7b06a67 commit 6ce44fe16a36611d5814b61621ee2c72590ee58f jlamarche committed Apr 5, 2011
Showing with 3 additions and 5 deletions.
  1. +3 −5 Blender Export/objc_blend_2.57 (RC1)/io_export_objective_c_header.py
View
8 Blender Export/objc_blend_2.57 (RC1)/io_export_objective_c_header.py
@@ -30,7 +30,6 @@
import mathutils
def triangulateNMesh(object):
- global bDeleteMergeMesh
bneedtri = False
scene = bpy.context.scene
bpy.ops.object.mode_set(mode='OBJECT')
@@ -60,10 +59,9 @@ def triangulateNMesh(object):
bpy.context.scene.update()
bpy.ops.object.mode_set(mode='OBJECT') # set it in object
print("Triangulate Mesh Done!")
- if bDeleteMergeMesh == True:
- print("Remove Merge tmp Mesh [ " ,object.name, " ] from scene!" )
- bpy.ops.object.mode_set(mode='OBJECT') # set it in object
- bpy.context.scene.objects.unlink(object)
+ print("Remove Merge tmp Mesh [ " ,object.name, " ] from scene!" )
+ bpy.ops.object.mode_set(mode='OBJECT') # set it in object
+ bpy.context.scene.objects.unlink(object)
else:
print("No need to convert tri mesh.")
me_ob = object

0 comments on commit 6ce44fe

Please sign in to comment.
Something went wrong with that request. Please try again.