diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-11-23 05:55:33 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-11-23 05:55:33 +0300 |
commit | 1fcb3e791f320563a997c83c3ea3063b606f17b8 (patch) | |
tree | 6f2e0e828836a63d3db8c8574b44e1ee691df327 /release/scripts/startup/bl_ui | |
parent | d56c0a0a6affcdfd7335c5fce1892a82f23bdf37 (diff) |
Cleanup: single quote enums
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_constraint.py | 6 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/properties_particle.py | 16 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_node.py | 2 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 22 |
4 files changed, 28 insertions, 18 deletions
diff --git a/release/scripts/startup/bl_ui/properties_constraint.py b/release/scripts/startup/bl_ui/properties_constraint.py index dcd84d105ad..b1f2c43c933 100644 --- a/release/scripts/startup/bl_ui/properties_constraint.py +++ b/release/scripts/startup/bl_ui/properties_constraint.py @@ -926,7 +926,7 @@ class ConstraintButtonsPanel: if not con.targets: box = topcol.box() - box.label(text="No target bones were added", icon="ERROR") + box.label(text="No target bones were added", icon='ERROR') for i, tgt in enumerate(con.targets): box = topcol.box() @@ -944,9 +944,9 @@ class ConstraintButtonsPanel: if has_target: row.prop_search(tgt, "subtarget", tgt.target.data, "bones", text="") else: - row.prop(tgt, "subtarget", text="", icon="BONE_DATA") + row.prop(tgt, "subtarget", text="", icon='BONE_DATA') - header.operator("constraint.remove_target", icon="REMOVE", text="").index = i + header.operator("constraint.remove_target", text="", icon='REMOVE').index = i col = box.column() col.active = has_target and tgt.subtarget != "" diff --git a/release/scripts/startup/bl_ui/properties_particle.py b/release/scripts/startup/bl_ui/properties_particle.py index 1618b2dccfa..26cb263a1d1 100644 --- a/release/scripts/startup/bl_ui/properties_particle.py +++ b/release/scripts/startup/bl_ui/properties_particle.py @@ -72,17 +72,27 @@ class PARTICLE_MT_specials(Menu): def draw(self, context): layout = self.layout - props = layout.operator("particle.copy_particle_systems", text="Copy Active to Selected Objects", icon="COPYDOWN") + props = layout.operator( + "particle.copy_particle_systems", + text="Copy Active to Selected Objects", + icon='COPYDOWN', + ) props.use_active = True props.remove_target_particles = False - props = layout.operator("particle.copy_particle_systems", text="Copy All to Selected Objects") + props = layout.operator( + "particle.copy_particle_systems", + text="Copy All to Selected Objects", + ) props.use_active = False props.remove_target_particles = True layout.separator() - layout.operator("particle.duplicate_particle_system", icon="DUPLICATE") + layout.operator( + "particle.duplicate_particle_system", + icon='DUPLICATE', + ) class PARTICLE_PT_hair_dynamics_presets(PresetMenu): diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py index a15bb24d100..789fc1b0a31 100644 --- a/release/scripts/startup/bl_ui/space_node.py +++ b/release/scripts/startup/bl_ui/space_node.py @@ -180,7 +180,7 @@ class NODE_MT_add(bpy.types.Menu): layout = self.layout layout.operator_context = 'INVOKE_DEFAULT' - props = layout.operator("node.add_search", text="Search...", icon="VIEWZOOM") + props = layout.operator("node.add_search", text="Search...", icon='VIEWZOOM') props.use_transform = True layout.separator() diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 0542fe6025b..5db09454e84 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -1141,8 +1141,8 @@ class VIEW3D_MT_select_edit_text(Menu): layout = self.layout layout.operator("font.text_cut", text="Cut") - layout.operator("font.text_copy", text="Copy", icon="COPYDOWN") - layout.operator("font.text_paste", text="Paste", icon="PASTEDOWN") + layout.operator("font.text_copy", text="Copy", icon='COPYDOWN') + layout.operator("font.text_paste", text="Paste", icon='PASTEDOWN') layout.separator() @@ -1626,8 +1626,8 @@ class VIEW3D_MT_object(Menu): layout.separator() - layout.operator("view3d.copybuffer", text="Copy Objects", icon="COPYDOWN") - layout.operator("view3d.pastebuffer", text="Paste Objects", icon="PASTEDOWN") + layout.operator("view3d.copybuffer", text="Copy Objects", icon='COPYDOWN') + layout.operator("view3d.pastebuffer", text="Paste Objects", icon='PASTEDOWN') layout.separator() @@ -1875,7 +1875,7 @@ class VIEW3D_MT_object_specials(Menu): layout.separator() - layout.operator("object.duplicate_move", icon="DUPLICATE") + layout.operator("object.duplicate_move", icon='DUPLICATE') layout.operator("object.duplicate_move_linked") layout.separator() @@ -2466,8 +2466,8 @@ class VIEW3D_MT_pose(Menu): layout.separator() - layout.operator("pose.copy", icon="COPYDOWN") - layout.operator("pose.paste", icon="PASTEDOWN").flipped = False + layout.operator("pose.copy", icon='COPYDOWN') + layout.operator("pose.paste", icon='PASTEDOWN').flipped = False layout.operator("pose.paste", text="Paste Pose Flipped").flipped = True layout.separator() @@ -2649,8 +2649,8 @@ class VIEW3D_MT_pose_specials(Menu): layout.separator() - layout.operator("pose.copy", icon="COPYDOWN") - layout.operator("pose.paste", icon="PASTEDOWN").flipped = False + layout.operator("pose.copy", icon='COPYDOWN') + layout.operator("pose.paste", icon='PASTEDOWN').flipped = False layout.operator("pose.paste", text="Paste X-Flipped Pose").flipped = True layout.separator() @@ -3728,8 +3728,8 @@ class VIEW3D_MT_edit_gpencil(Menu): layout.separator() - layout.operator("gpencil.copy", text="Copy", icon="COPYDOWN") - layout.operator("gpencil.paste", text="Paste", icon="PASTEDOWN").type = 'COPY' + layout.operator("gpencil.copy", text="Copy", icon='COPYDOWN') + layout.operator("gpencil.paste", text="Paste", icon='PASTEDOWN').type = 'COPY' layout.operator("gpencil.paste", text="Paste & Merge").type = 'MERGE' layout.separator() |