forked from bartvdbraak/blender
Cleanup: unused vars, redundant parenthisis
This commit is contained in:
parent
d7f687c833
commit
414875ce96
@ -233,7 +233,7 @@ class QuickExplode(ObjectModeOperator, Operator):
|
|||||||
|
|
||||||
nodes = mat.node_tree.nodes
|
nodes = mat.node_tree.nodes
|
||||||
for node in nodes:
|
for node in nodes:
|
||||||
if (node.type == 'OUTPUT_MATERIAL'):
|
if node.type == 'OUTPUT_MATERIAL':
|
||||||
node_out_mat = node
|
node_out_mat = node
|
||||||
break
|
break
|
||||||
|
|
||||||
|
@ -168,7 +168,6 @@ class VIEW3D_OT_transform_gizmo_set(Operator):
|
|||||||
space_data = context.space_data
|
space_data = context.space_data
|
||||||
space_data.show_gizmo = True
|
space_data.show_gizmo = True
|
||||||
attrs = ("show_gizmo_object_translate", "show_gizmo_object_rotate", "show_gizmo_object_scale")
|
attrs = ("show_gizmo_object_translate", "show_gizmo_object_rotate", "show_gizmo_object_scale")
|
||||||
attr_t, attr_r, attr_s = attrs
|
|
||||||
attr_active = tuple(
|
attr_active = tuple(
|
||||||
attrs[('TRANSLATE', 'ROTATE', 'SCALE').index(t)]
|
attrs[('TRANSLATE', 'ROTATE', 'SCALE').index(t)]
|
||||||
for t in self.type
|
for t in self.type
|
||||||
|
@ -105,7 +105,7 @@ class EEVEE_MATERIAL_PT_context_material(MaterialButtonsPanel, Panel):
|
|||||||
if ob:
|
if ob:
|
||||||
is_sortable = len(ob.material_slots) > 1
|
is_sortable = len(ob.material_slots) > 1
|
||||||
rows = 3
|
rows = 3
|
||||||
if (is_sortable):
|
if is_sortable:
|
||||||
rows = 5
|
rows = 5
|
||||||
|
|
||||||
row = layout.row()
|
row = layout.row()
|
||||||
|
Loading…
Reference in New Issue
Block a user