Cleanup: format, single quote enums

This commit is contained in:
Campbell Barton 2023-08-29 14:55:10 +10:00
parent 1e0ddab5b8
commit 7abf5fc093
2 changed files with 20 additions and 20 deletions

View File

@ -722,7 +722,7 @@ class SpellChecker:
"avx", "avx",
"bsdf", "bsdfs", "bsdf", "bsdfs",
"bssrdf", "bssrdf",
"bt", #BT.1886 2.4 Exponent EOTF "bt", # BT.1886 2.4 Exponent EOTF
"bw", "bw",
"ccd", "ccd",
"cie", # CIE XYZ color space "cie", # CIE XYZ color space
@ -739,7 +739,7 @@ class SpellChecker:
"dvar", "dvar",
"dx", "dx",
"eo", "eo",
"eotf", #BT.1886 2.4 Exponent EOTF "eotf", # BT.1886 2.4 Exponent EOTF
"ewa", "ewa",
"fh", "fh",
"fk", "fk",

View File

@ -755,13 +755,13 @@ class VIEW3D_HT_header(Header):
row.operator( row.operator(
"grease_pencil.set_selection_mode", "grease_pencil.set_selection_mode",
text="", text="",
icon="GP_SELECT_POINTS", icon='GP_SELECT_POINTS',
depress=(tool_settings.gpencil_selectmode_edit == 'POINT'), depress=(tool_settings.gpencil_selectmode_edit == 'POINT'),
).mode = 'POINT' ).mode = 'POINT'
row.operator( row.operator(
"grease_pencil.set_selection_mode", "grease_pencil.set_selection_mode",
text="", text="",
icon="GP_SELECT_STROKES", icon='GP_SELECT_STROKES',
depress=(tool_settings.gpencil_selectmode_edit == 'STROKE'), depress=(tool_settings.gpencil_selectmode_edit == 'STROKE'),
).mode = 'STROKE' ).mode = 'STROKE'
@ -6114,22 +6114,22 @@ class VIEW3D_PT_object_type_visibility(Panel):
col = layout.column(align=True) col = layout.column(align=True)
attr_object_types = ( attr_object_types = (
("mesh", "Mesh", "OUTLINER_OB_MESH"), ("mesh", "Mesh", 'OUTLINER_OB_MESH'),
("curve", "Curve", "OUTLINER_OB_CURVE"), ("curve", "Curve", 'OUTLINER_OB_CURVE'),
("surf", "Surface", "OUTLINER_OB_SURFACE"), ("surf", "Surface", 'OUTLINER_OB_SURFACE'),
("meta", "Meta", "OUTLINER_OB_META"), ("meta", "Meta", 'OUTLINER_OB_META'),
("font", "Text", "OUTLINER_OB_FONT"), ("font", "Text", 'OUTLINER_OB_FONT'),
("curves", "Hair Curves", "OUTLINER_OB_CURVES"), ("curves", "Hair Curves", 'OUTLINER_OB_CURVES'),
("pointcloud", "Point Cloud", "OUTLINER_OB_POINTCLOUD"), ("pointcloud", "Point Cloud", 'OUTLINER_OB_POINTCLOUD'),
("volume", "Volume", "OUTLINER_OB_VOLUME"), ("volume", "Volume", 'OUTLINER_OB_VOLUME'),
("grease_pencil", "Grease Pencil", "OUTLINER_OB_GREASEPENCIL"), ("grease_pencil", "Grease Pencil", 'OUTLINER_OB_GREASEPENCIL'),
("armature", "Armature", "OUTLINER_OB_ARMATURE"), ("armature", "Armature", 'OUTLINER_OB_ARMATURE'),
("lattice", "Lattice", "OUTLINER_OB_LATTICE"), ("lattice", "Lattice", 'OUTLINER_OB_LATTICE'),
("empty", "Empty", "OUTLINER_OB_EMPTY"), ("empty", "Empty", 'OUTLINER_OB_EMPTY'),
("light", "Light", "OUTLINER_OB_LIGHT"), ("light", "Light", 'OUTLINER_OB_LIGHT'),
("light_probe", "Light Probe", "OUTLINER_OB_LIGHTPROBE"), ("light_probe", "Light Probe", 'OUTLINER_OB_LIGHTPROBE'),
("camera", "Camera", "OUTLINER_OB_CAMERA"), ("camera", "Camera", 'OUTLINER_OB_CAMERA'),
("speaker", "Speaker", "OUTLINER_OB_SPEAKER"), ("speaker", "Speaker", 'OUTLINER_OB_SPEAKER'),
) )
for attr, attr_name, attr_icon in attr_object_types: for attr, attr_name, attr_icon in attr_object_types: