Fix T61598: Python error from connect rigid body feature
authorPhilipp Oeser <info@graphics-engineer.com>
Tue, 2 Apr 2019 08:15:04 +0000 (10:15 +0200)
committerPhilipp Oeser <info@graphics-engineer.com>
Tue, 2 Apr 2019 08:15:04 +0000 (10:15 +0200)
needed update to 2.8

release/scripts/startup/bl_operators/rigidbody.py

index 235db39..f897435 100644 (file)
@@ -264,7 +264,7 @@ class ConnectRigidBodies(Operator):
 
         ob = bpy.data.objects.new("Constraint", object_data=None)
         ob.location = loc
-        context.scene.objects.link(ob)
+        context.scene.collection.objects.link(ob)
         context.view_layer.objects.active = ob
         ob.select_set(True)