Cleanup: consistent naming for tool_settings & operator properties
Use names: - `tool_settings` instead of `ts`. - `props` instead of `op` / `prop` / `op_props` As Python may reference operators, don't confuse the operator properties with an instance of the operator. In both cases these names were already used for most scripts.
This commit is contained in:
@@ -63,12 +63,12 @@ class MESH_MT_shape_key_context_menu(Menu):
|
||||
layout.operator("object.join_shapes")
|
||||
layout.operator("object.shape_key_transfer")
|
||||
layout.separator()
|
||||
op = layout.operator("object.shape_key_remove", icon='X', text="Delete All Shape Keys")
|
||||
op.all = True
|
||||
op.apply_mix = False
|
||||
op = layout.operator("object.shape_key_remove", text="Apply All Shape Keys")
|
||||
op.all = True
|
||||
op.apply_mix = True
|
||||
props = layout.operator("object.shape_key_remove", icon='X', text="Delete All Shape Keys")
|
||||
props.all = True
|
||||
props.apply_mix = False
|
||||
props = layout.operator("object.shape_key_remove", text="Apply All Shape Keys")
|
||||
props.all = True
|
||||
props.apply_mix = True
|
||||
layout.separator()
|
||||
layout.operator("object.shape_key_move", icon='TRIA_UP_BAR', text="Move to Top").type = 'TOP'
|
||||
layout.operator("object.shape_key_move", icon='TRIA_DOWN_BAR', text="Move to Bottom").type = 'BOTTOM'
|
||||
@@ -674,12 +674,12 @@ class MESH_UL_color_attributes(UIList, ColorAttributesListBase):
|
||||
|
||||
row = layout.row()
|
||||
row.emboss = 'NONE'
|
||||
prop = row.operator(
|
||||
props = row.operator(
|
||||
"geometry.color_attribute_render_set",
|
||||
text="",
|
||||
icon='RESTRICT_RENDER_OFF' if active_render else 'RESTRICT_RENDER_ON',
|
||||
)
|
||||
prop.name = attribute.name
|
||||
props.name = attribute.name
|
||||
|
||||
|
||||
class MESH_UL_color_attributes_selector(UIList, ColorAttributesListBase):
|
||||
|
||||
Reference in New Issue
Block a user