for for [bf-blender-Bug Tracker][11843] 3DS importer imports broken meshes
authorCampbell Barton <ideasman42@gmail.com>
Sun, 25 May 2008 13:48:36 +0000 (13:48 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 25 May 2008 13:48:36 +0000 (13:48 +0000)
release/scripts/3ds_import.py

index 8c7c93018dbbf5d5461077eaaa9012b5af18c39a..028b96336068c81514dfc148415fe7c3ef31615a 100644 (file)
@@ -419,7 +419,7 @@ def process_next_chunk(file, previous_chunk, importedObjects, IMAGE_SEARCH):
                                ob.setMatrix(contextMatrix_rot)
                        
                        importedObjects.append(ob)
-                       
+                       bmesh.calcNormals()
                
                for matName, faces in myContextMeshMaterials.iteritems():
                        makeMeshMaterialCopy(matName, faces)
@@ -664,9 +664,8 @@ def process_next_chunk(file, previous_chunk, importedObjects, IMAGE_SEARCH):
                        #print contextLamp.name, 
                        
                elif (new_chunk.ID==OBJECT_MESH):
-                       ## @@ PATCH
-                       print 'Found an OBJECT_MESH chunk'
-               
+                       # print 'Found an OBJECT_MESH chunk'
+                       pass
                elif (new_chunk.ID==OBJECT_VERTICES):
                        '''
                        Worldspace vertex locations