Merge branch 'master' into blender2.8
[blender.git] / release / scripts / startup / bl_ui / properties_physics_rigidbody_constraint.py
index 8f6b5b5..5e67caa 100644 (file)
@@ -29,13 +29,12 @@ class PHYSICS_PT_rigidbody_constraint_panel:
 
 class PHYSICS_PT_rigid_body_constraint(PHYSICS_PT_rigidbody_constraint_panel, Panel):
     bl_label = "Rigid Body Constraint"
-    COMPAT_ENGINES = {'BLENDER_RENDER'}
+    COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_OPENGL'}
 
     @classmethod
     def poll(cls, context):
         ob = context.object
-        rd = context.scene.render
-        return (ob and ob.rigid_body_constraint and rd.engine in cls.COMPAT_ENGINES)
+        return (ob and ob.rigid_body_constraint and context.engine in cls.COMPAT_ENGINES)
 
     def draw(self, context):
         layout = self.layout