Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2019-04-02 11:15:04 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-04-02 11:15:04 +0300
commit0a2e59a7269c573113449654c61bdf6656a3c430 (patch)
tree34390b535496eaac992a3edf31c66067420b8ccc /release
parent0df17bc9c91c5d5ebc839e0db9c59f6b61626fde (diff)
Fix T61598: Python error from connect rigid body feature
needed update to 2.8
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_operators/rigidbody.py2
1 files changed, 1 insertions, 1 deletions
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)