Cleanup: trailing space, use single quotes for enums
This commit is contained in:
@@ -77,7 +77,7 @@ class MotionPathButtonsPanel:
|
||||
else:
|
||||
row.operator("object.paths_update", text="Update Paths", icon='OBJECT_DATA')
|
||||
row.operator("object.paths_clear", text="", icon='X')
|
||||
col.operator("object.paths_update_visible", text="Update All Paths", icon="WORLD")
|
||||
col.operator("object.paths_update_visible", text="Update All Paths", icon='WORLD')
|
||||
else:
|
||||
col = layout.column(align=True)
|
||||
col.label(text="Nothing to show yet...", icon='ERROR')
|
||||
@@ -86,7 +86,7 @@ class MotionPathButtonsPanel:
|
||||
col.operator("pose.paths_calculate", text="Calculate...", icon='BONE_DATA')
|
||||
else:
|
||||
col.operator("object.paths_calculate", text="Calculate...", icon='OBJECT_DATA')
|
||||
col.operator("object.paths_update_visible", text="Update All Paths", icon="WORLD")
|
||||
col.operator("object.paths_update_visible", text="Update All Paths", icon='WORLD')
|
||||
|
||||
|
||||
class MotionPathButtonsPanel_display:
|
||||
|
||||
@@ -196,7 +196,7 @@ class BONE_PT_curved(BoneButtonsPanel, Panel):
|
||||
row2.prop(bone, "bbone_handle_use_scale_start", index=1, text="Y", toggle=True)
|
||||
row2.prop(bone, "bbone_handle_use_scale_start", index=2, text="Z", toggle=True)
|
||||
split2.prop(bone, "bbone_handle_use_ease_start", text="Ease", toggle=True)
|
||||
row.label(icon="BLANK1")
|
||||
row.label(icon='BLANK1')
|
||||
|
||||
col = topcol.column(align=True)
|
||||
col.prop(bone, "bbone_handle_type_end", text="End Handle")
|
||||
@@ -216,7 +216,7 @@ class BONE_PT_curved(BoneButtonsPanel, Panel):
|
||||
row2.prop(bone, "bbone_handle_use_scale_end", index=1, text="Y", toggle=True)
|
||||
row2.prop(bone, "bbone_handle_use_scale_end", index=2, text="Z", toggle=True)
|
||||
split2.prop(bone, "bbone_handle_use_ease_end", text="Ease", toggle=True)
|
||||
row.label(icon="BLANK1")
|
||||
row.label(icon='BLANK1')
|
||||
|
||||
|
||||
class BONE_PT_relations(BoneButtonsPanel, Panel):
|
||||
|
||||
@@ -280,7 +280,7 @@ class VIEWLAYER_PT_freestyle_lineset(ViewLayerFreestyleEditorButtonsPanel, Panel
|
||||
|
||||
col.separator()
|
||||
|
||||
col.menu("RENDER_MT_lineset_context_menu", icon="DOWNARROW_HLT", text="")
|
||||
col.menu("RENDER_MT_lineset_context_menu", icon='DOWNARROW_HLT', text="")
|
||||
|
||||
if is_sortable:
|
||||
col.separator()
|
||||
|
||||
@@ -757,7 +757,7 @@ class NodeTreeInterfacePanel:
|
||||
field_socket_prefixes = {
|
||||
"NodeSocketInt", "NodeSocketColor", "NodeSocketVector", "NodeSocketBool", "NodeSocketFloat"}
|
||||
is_field_type = any(active_socket.bl_socket_idname.startswith(prefix) for prefix in field_socket_prefixes)
|
||||
if in_out == "OUT" and is_field_type:
|
||||
if in_out == 'OUT' and is_field_type:
|
||||
layout.prop(active_socket, "attribute_domain")
|
||||
active_socket.draw(context, layout)
|
||||
|
||||
|
||||
@@ -1140,7 +1140,7 @@ class SEQUENCER_PT_color_tag_picker(SequencerColorTagPicker, Panel):
|
||||
layout = self.layout
|
||||
|
||||
row = layout.row(align=True)
|
||||
row.operator("sequencer.strip_color_tag_set", icon="X").color = 'NONE'
|
||||
row.operator("sequencer.strip_color_tag_set", icon='X').color = 'NONE'
|
||||
for i in range(1, 10):
|
||||
icon = 'SEQUENCE_COLOR_%02d' % i
|
||||
row.operator("sequencer.strip_color_tag_set", icon=icon).color = 'COLOR_%02d' % i
|
||||
@@ -1313,15 +1313,15 @@ class SEQUENCER_PT_effect(SequencerButtonsPanel, Panel):
|
||||
elif strip_type == 'SPEED':
|
||||
col = layout.column(align=True)
|
||||
col.prop(strip, "speed_control", text="Speed Control")
|
||||
if strip.speed_control == "MULTIPLY":
|
||||
if strip.speed_control == 'MULTIPLY':
|
||||
col.prop(strip, "speed_factor", text=" ")
|
||||
elif strip.speed_control == "LENGTH":
|
||||
elif strip.speed_control == 'LENGTH':
|
||||
col.prop(strip, "speed_length", text=" ")
|
||||
elif strip.speed_control == "FRAME_NUMBER":
|
||||
elif strip.speed_control == 'FRAME_NUMBER':
|
||||
col.prop(strip, "speed_frame_number", text=" ")
|
||||
|
||||
row = layout.row(align=True)
|
||||
row.enabled = strip.speed_control != "STRETCH"
|
||||
row.enabled = strip.speed_control != 'STRETCH'
|
||||
row = layout.row(align=True, heading="Interpolation")
|
||||
row.prop(strip, "use_frame_interpolate", text="")
|
||||
|
||||
|
||||
@@ -257,8 +257,8 @@ def test_restrictions1():
|
||||
# just panel for testing the poll callback with lots of objects
|
||||
class TEST_PT_DatablockProp(bpy.types.Panel):
|
||||
bl_label = "Datablock IDProp"
|
||||
bl_space_type = "PROPERTIES"
|
||||
bl_region_type = "WINDOW"
|
||||
bl_space_type = 'PROPERTIES'
|
||||
bl_region_type = 'WINDOW'
|
||||
bl_context = "render"
|
||||
|
||||
def draw(self, context):
|
||||
|
||||
Reference in New Issue
Block a user