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