Workspace: Move engines to workspace and Properties Editor cleanup
[blender.git] / release / scripts / startup / bl_ui / properties_physics_softbody.py
index 5efe105e7d82cfc886c91770ad6842f7f4f57a65..186ba19f62d3325917c66bf49ba4a6093ecf5cf7 100644 (file)
@@ -41,8 +41,8 @@ class PhysicButtonsPanel:
     @classmethod
     def poll(cls, context):
         ob = context.object
     @classmethod
     def poll(cls, context):
         ob = context.object
-        rd = context.scene.render
-        return ob and ob.type in COMPAT_OB_TYPES and rd.engine in cls.COMPAT_ENGINES and context.soft_body
+        view_render = context.scene.view_render
+        return ob and ob.type in COMPAT_OB_TYPES and view_render.engine in cls.COMPAT_ENGINES and context.soft_body
 
 
 class PHYSICS_PT_softbody(PhysicButtonsPanel, Panel):
 
 
 class PHYSICS_PT_softbody(PhysicButtonsPanel, Panel):