Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_physics_softbody.py
| Show First 20 Lines • Show All 208 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| col.prop(softbody, "damping") | col.prop(softbody, "damping") | ||||
| col.prop(softbody, "plastic") | col.prop(softbody, "plastic") | ||||
| col.prop(softbody, "bend") | col.prop(softbody, "bend") | ||||
| col.separator() | col.separator() | ||||
| col = flow.column() | col = flow.column() | ||||
| col.prop(softbody, "spring_length", text="Length") | col.prop(softbody, "spring_length", text="Length") | ||||
| col.prop(softbody, "use_edge_collision", text="Collision Edge") | |||||
| col.prop(softbody, "use_face_collision", text="Face") | col.separator() | ||||
| col = flow.column(align=True, heading="Collision") | |||||
| col.prop(softbody, "use_edge_collision", text="Edge", toggle=False) | |||||
| col.prop(softbody, "use_face_collision", text="Face", toggle=False) | |||||
pioverfour: It’s unclear seeing “Face” on its own that it’s about face collisions, but a good solution to… | |||||
| class PHYSICS_PT_softbody_edge_aerodynamics(PhysicButtonsPanel, Panel): | class PHYSICS_PT_softbody_edge_aerodynamics(PhysicButtonsPanel, Panel): | ||||
| bl_label = "Aerodynamics" | bl_label = "Aerodynamics" | ||||
| bl_parent_id = 'PHYSICS_PT_softbody_edge' | bl_parent_id = 'PHYSICS_PT_softbody_edge' | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH'} | ||||
| ▲ Show 20 Lines • Show All 179 Lines • Show Last 20 Lines | |||||
It’s unclear seeing “Face” on its own that it’s about face collisions, but a good solution to this is used consistently in the UI.
Before:
After: