diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-13 16:06:32 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-13 16:06:58 +0300 |
commit | 1a6b2650faef31f5d201d961b28a2fedb35b7198 (patch) | |
tree | c69424fcc08bbbc000ed2cd6ebdedb77bec88bbf /release | |
parent | eed9458c22b612f88893f48ec2f1a4d505672491 (diff) |
Cleanup: double quotes for non-enum strings
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_render.py | 2 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_outliner.py | 4 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_ui/properties_render.py b/release/scripts/startup/bl_ui/properties_render.py index 3714885e9f8..17026537718 100644 --- a/release/scripts/startup/bl_ui/properties_render.py +++ b/release/scripts/startup/bl_ui/properties_render.py @@ -378,7 +378,7 @@ class RENDER_UL_renderviews(UIList): def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index): view = item if self.layout_type in {'DEFAULT', 'COMPACT'}: - if view.name in {'left', 'right'}: + if view.name in {"left", "right"}: layout.label(view.name, icon_value=icon + (not view.use)) else: layout.prop(view, "name", text="", index=index, icon_value=icon, emboss=False) diff --git a/release/scripts/startup/bl_ui/space_outliner.py b/release/scripts/startup/bl_ui/space_outliner.py index 12cff72b61a..9a27985a352 100644 --- a/release/scripts/startup/bl_ui/space_outliner.py +++ b/release/scripts/startup/bl_ui/space_outliner.py @@ -186,7 +186,7 @@ class OUTLINER_MT_collection(Menu): layout.menu("OUTLINER_MT_collection_view_layer") layout.separator() - layout.operator_menu_enum("outliner.id_operation", 'type', text="ID Data") + layout.operator_menu_enum("outliner.id_operation", "type", text="ID Data") class OUTLINER_MT_collection_new(Menu): @@ -222,7 +222,7 @@ class OUTLINER_MT_object(Menu): layout.operator("outliner.id_operation", text="Unlink").type = 'UNLINK' layout.separator() - layout.operator_menu_enum("outliner.id_operation", 'type', text="ID Data") + layout.operator_menu_enum("outliner.id_operation", "type", text="ID Data") class OUTLINER_PT_filter(Panel): diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 9343dfbca0e..f371cad6d72 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -45,7 +45,7 @@ class VIEW3D_HT_header(Header): mode = 'OBJECT' if obj is None else obj.mode - act_mode_item = bpy.types.Object.bl_rna.properties['mode'].enum_items[mode] + act_mode_item = bpy.types.Object.bl_rna.properties["mode"].enum_items[mode] layout.operator_menu_enum("object.mode_set", "mode", text=act_mode_item.name, icon=act_mode_item.icon) del act_mode_item @@ -53,7 +53,7 @@ class VIEW3D_HT_header(Header): # Contains buttons like Mode, Pivot, Manipulator, Layer, Mesh Select Mode... shading_type = view.shading.type - shading_item = bpy.types.View3DShading.bl_rna.properties['type'].enum_items[shading_type] + shading_item = bpy.types.View3DShading.bl_rna.properties["type"].enum_items[shading_type] if obj: # Set above: |