lamp import was broken.
authorCampbell Barton <ideasman42@gmail.com>
Mon, 28 May 2007 17:52:53 +0000 (17:52 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 28 May 2007 17:52:53 +0000 (17:52 +0000)
release/scripts/3ds_import.py

index a4e9c969300a480d40ea232602c60418eba3c4ce..56acc50e38d56587f9d94639b4ab7e9435115abe 100644 (file)
@@ -625,9 +625,7 @@ def process_next_chunk(file, previous_chunk, importedObjects, IMAGE_SEARCH):
                        new_chunk.bytes_read+=STRUCT_SIZE_3FLOAT
                        
                        contextLamp[1]= bpy.data.lamps.new()
-                       contextLamp[0]= SCN_OBJECTS.link(contextLamp[1])
-                       contextLamp[0].link(contextLamp[1])
-                       ##scn.link(contextLamp[0])
+                       contextLamp[0]= SCN_OBJECTS.new(contextLamp[1])
                        importedObjects.append(contextLamp[0])
                        
                        #print 'number of faces: ', num_faces