diff options
author | William Reynish <billrey@me.com> | 2019-05-12 20:57:56 +0300 |
---|---|---|
committer | William Reynish <billrey@me.com> | 2019-05-12 20:57:56 +0300 |
commit | e2b60f858e0a3d96aa2914e5bfbf78cf3c887c74 (patch) | |
tree | 5d921daf8d37ba1e273f1d26a6e6e4b8674247b6 | |
parent | 8c5585221d4ad998d2dcdacc1d18f24cc6d9a13e (diff) |
UI: Reinstate icons in the Physics Properties
These were removed at a time when there were no modifier icons.
-rw-r--r-- | release/scripts/startup/bl_ui/properties_physics_common.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_common.py b/release/scripts/startup/bl_ui/properties_physics_common.py index aeeb4714d46..70e745b1c20 100644 --- a/release/scripts/startup/bl_ui/properties_physics_common.py +++ b/release/scripts/startup/bl_ui/properties_physics_common.py @@ -35,7 +35,7 @@ class PhysicButtonsPanel: return (context.object) and context.engine in cls.COMPAT_ENGINES -def physics_add(layout, md, name, type, _typeicon, toggles): +def physics_add(layout, md, name, type, typeicon, toggles): row = layout.row(align=True) if md: row.context_pointer_set("modifier", md) @@ -53,16 +53,16 @@ def physics_add(layout, md, name, type, _typeicon, toggles): "object.modifier_add", text=name, text_ctxt=i18n_contexts.default, - icon='BLANK1', + icon=typeicon, ).type = type -def physics_add_special(layout, data, name, addop, removeop, _typeicon): +def physics_add_special(layout, data, name, addop, removeop, typeicon): row = layout.row(align=True) if data: row.operator(removeop, text=name, text_ctxt=i18n_contexts.default, icon='X') else: - row.operator(addop, text=name, text_ctxt=i18n_contexts.default, icon='BLANK1') + row.operator(addop, text=name, text_ctxt=i18n_contexts.default, icon=typeicon) class PHYSICS_PT_add(PhysicButtonsPanel, Panel): @@ -84,7 +84,7 @@ class PHYSICS_PT_add(PhysicButtonsPanel, Panel): col = flow.column() if obj.field.type == 'NONE': - col.operator("object.forcefield_toggle", text="Force Field", icon='BLANK1') + col.operator("object.forcefield_toggle", text="Force Field", icon='FORCE_FORCE') else: col.operator("object.forcefield_toggle", text="Force Field", icon='X') |