Node Wrangler: Improved accuracy on Align Nodes operator #104551
@ -2360,12 +2360,13 @@ class NWAlignNodes(Operator, NWBase):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
selection = [node for node in context.selected_nodes if node.type != 'FRAME']
|
selection = (node for node in context.selected_nodes if node.type != 'FRAME')
|
||||||
if len(selection) < 2:
|
for index, _ in enumerate(selection):
|
||||||
return False
|
if index >= 1:
|
||||||
|
|
||||||
return nw_check(context)
|
return nw_check(context)
|
||||||
|
|
||||||
|
return False
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_midpoint(node, axis):
|
def get_midpoint(node, axis):
|
||||||
reroute_width = 10
|
reroute_width = 10
|
||||||
|
Loading…
Reference in New Issue
Block a user