Cleanup: unused vars, redundant parenthisis

This commit is contained in:
Campbell Barton 2019-07-07 22:24:11 +10:00
parent d7f687c833
commit 414875ce96
3 changed files with 2 additions and 3 deletions

@ -233,7 +233,7 @@ class QuickExplode(ObjectModeOperator, Operator):
nodes = mat.node_tree.nodes
for node in nodes:
if (node.type == 'OUTPUT_MATERIAL'):
if node.type == 'OUTPUT_MATERIAL':
node_out_mat = node
break

@ -168,7 +168,6 @@ class VIEW3D_OT_transform_gizmo_set(Operator):
space_data = context.space_data
space_data.show_gizmo = True
attrs = ("show_gizmo_object_translate", "show_gizmo_object_rotate", "show_gizmo_object_scale")
attr_t, attr_r, attr_s = attrs
attr_active = tuple(
attrs[('TRANSLATE', 'ROTATE', 'SCALE').index(t)]
for t in self.type

@ -105,7 +105,7 @@ class EEVEE_MATERIAL_PT_context_material(MaterialButtonsPanel, Panel):
if ob:
is_sortable = len(ob.material_slots) > 1
rows = 3
if (is_sortable):
if is_sortable:
rows = 5
row = layout.row()