- dir() now works for collection functions
[blender-staging.git] / release / scripts / io / import_scene_obj.py
index 6e67c14d37a560ec7fe9512e9b9c5bef530845f9..2bce99ffb3e5a818709bb210c5c064f15d3babb1 100644 (file)
@@ -864,7 +864,7 @@ def create_mesh(scn, new_objects, has_ngons, CREATE_FGONS, CREATE_EDGES, verts_l
        
        ob= bpy.data.add_object("MESH", "Mesh")
        ob.data= me
-       scn.add_object(ob)
+       scn.objects.link(ob)
 #      ob= scn.objects.new(me)
        new_objects.append(ob)