rigidbody.object_add won't accept fake context?

Hi All,

I was trying to provide a fake context for rigidbody_object_add() but it does not seem to work.

o={'active_object': ob_reticular, 'object': ob_reticular, 'window': context.window, 'region': context.region, 'scene': context.scene}
r = bpy.ops.rigidbody.object_add(o)

This code does add a rigid_body to the context object, but not the object I have specified in the constructed context. Is this just an API error because rigid bodies are new? Or am I using this wrong?

it doesn’t seem to accept context overriding, but you can use bpy.context.scene.objects.active = ob_reticular instead

Thank you, that worked.