Page MenuHome

Can not add rigidbody constraint to empty in Blender 2.81
Closed, DuplicatePublic


System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: 67EF:CF ATI Technologies Inc. 4.5.13474 Core Profile Context

Blender Version
Broken: version: 2.81 (sub 4), branch: master, commit date: 2019-09-02 15:37, hash: rB283d96de1170
Worked: (optional)

Short description of error
Can not add rigidbody constraint to empty in Blender 2.81



Event Timeline

Just by chance I hit the same error today, this is how to reproduce:

.blend file:

  1. open attached .blend file (contains two default cubes with rigid body physics enabled)
  2. check that both cubes are selected (should be, other wise select them)
  3. choose Object --> RigidBody --> Connect

Observe that the empty (the RigidBody constraint) is added to the SceneCollection, not the Collection.
Further experiments showed that it seems to be impossible to add a rigid body constraint to an empty in the new version
This outputs the following in the console:

Traceback (most recent call last):

File "D:\blender\git-sandboxes\blender-main\build_windows_Release_x64_vc15_Release\bin\Release\2.81\scripts\startup\bl_operators\", line 311, in execute
  # restore selection
File "D:\blender\git-sandboxes\blender-main\build_windows_Release_x64_vc15_Release\bin\Release\2.81\scripts\startup\bl_operators\", line 275, in _add_constraint
  con.type = self.con_type
File "D:\blender\git-sandboxes\blender-main\build_windows_Release_x64_vc15_Release\bin\Release\2.81\scripts\modules\bpy\", line 201, in __call__
  ret = op_call(self.idname_py(), None, kw)

RuntimeError: Operator bpy.ops.rigidbody.constraint_add.poll() failed, context is incorrect

location: <unknown location>:-1