Differential D3505 Diff 11531 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 23 Lines | |||||
| class PHYSICS_PT_rigidbody_constraint_panel: | class PHYSICS_PT_rigidbody_constraint_panel: | ||||
| bl_space_type = 'PROPERTIES' | bl_space_type = 'PROPERTIES' | ||||
| bl_region_type = 'WINDOW' | bl_region_type = 'WINDOW' | ||||
| bl_context = "physics" | bl_context = "physics" | ||||
| 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', 'BLENDER_EEVEE', 'BLENDER_OPENGL'} | COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_OPENGL', 'BLENDER_LANPR'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| ob = context.object | ob = context.object | ||||
| return (ob and ob.rigid_body_constraint and context.engine in cls.COMPAT_ENGINES) | return (ob and ob.rigid_body_constraint and context.engine in cls.COMPAT_ENGINES) | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| ▲ Show 20 Lines • Show All 234 Lines • Show Last 20 Lines | |||||