forked from bartvdbraak/blender
Cleanup: double quotes for non-enum strings
This commit is contained in:
parent
eed9458c22
commit
1a6b2650fa
@ -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)
|
||||
|
@ -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):
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user