[Bf-blender-cvs] [0a2e59a7269] master: Fix T61598: Python error from connect rigid body feature
Philipp Oeser
noreply at git.blender.org
Tue Apr 2 10:17:47 CEST 2019
Commit: 0a2e59a7269c573113449654c61bdf6656a3c430
Author: Philipp Oeser
Date: Tue Apr 2 10:15:04 2019 +0200
Branches: master
https://developer.blender.org/rB0a2e59a7269c573113449654c61bdf6656a3c430
Fix T61598: Python error from connect rigid body feature
needed update to 2.8
===================================================================
M release/scripts/startup/bl_operators/rigidbody.py
===================================================================
diff --git a/release/scripts/startup/bl_operators/rigidbody.py b/release/scripts/startup/bl_operators/rigidbody.py
index 235db39e9b1..f897435e453 100644
--- a/release/scripts/startup/bl_operators/rigidbody.py
+++ b/release/scripts/startup/bl_operators/rigidbody.py
@@ -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)
More information about the Bf-blender-cvs
mailing list