Differential D2842 Diff 9393 release/scripts/startup/bl_ui/properties_physics_rigidbody_constraint.py
Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_physics_rigidbody_constraint.py
| Show All 28 Lines | |||||
| class PHYSICS_PT_rigid_body_constraint(PHYSICS_PT_rigidbody_constraint_panel, Panel): | class PHYSICS_PT_rigid_body_constraint(PHYSICS_PT_rigidbody_constraint_panel, Panel): | ||||
| bl_label = "Rigid Body Constraint" | bl_label = "Rigid Body Constraint" | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER'} | COMPAT_ENGINES = {'BLENDER_RENDER'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| ob = context.object | ob = context.object | ||||
| rd = context.scene.render | view_render = context.scene.view_render | ||||
| return (ob and ob.rigid_body_constraint and rd.engine in cls.COMPAT_ENGINES) | return (ob and ob.rigid_body_constraint and view_render.engine in cls.COMPAT_ENGINES) | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| ob = context.object | ob = context.object | ||||
| rbc = ob.rigid_body_constraint | rbc = ob.rigid_body_constraint | ||||
| layout.prop(rbc, "type") | layout.prop(rbc, "type") | ||||
| ▲ Show 20 Lines • Show All 224 Lines • Show Last 20 Lines | |||||