Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_physics_field.py
| Show First 20 Lines • Show All 319 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| coll = md.settings | coll = md.settings | ||||
| if not coll: | if not coll: | ||||
| collision_warning(layout) | collision_warning(layout) | ||||
| return | return | ||||
| settings = context.object.collision | settings = context.object.collision | ||||
| layout.active = settings.use | layout.prop(settings, "use", text="Enable Collision") | ||||
| col = layout.column() | col = layout.column() | ||||
| col.active = settings.use | |||||
| col.prop(settings, "absorption", text="Field Absorption") | col.prop(settings, "absorption", text="Field Absorption") | ||||
| class PHYSICS_PT_collision_particle(PhysicButtonsPanel, Panel): | class PHYSICS_PT_collision_particle(PhysicButtonsPanel, Panel): | ||||
| bl_label = "Particle" | bl_label = "Particle" | ||||
| bl_parent_id = "PHYSICS_PT_collision" | bl_parent_id = "PHYSICS_PT_collision" | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | ||||
| ▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines | |||||