Simulation nodes: UI for simulation state items in sidebar #106919
|
@ -256,7 +256,7 @@ class SimulationZoneOperator():
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
space = context.space_data
|
space = context.space_data
|
||||||
# needs active node editor and a tree to add nodes to
|
# Needs active node editor and a tree
|
||||||
if not space or space.type != 'NODE_EDITOR' or not space.edit_tree or space.edit_tree.library:
|
if not space or space.type != 'NODE_EDITOR' or not space.edit_tree or space.edit_tree.library:
|
||||||
return False
|
return False
|
||||||
node = context.active_node
|
node = context.active_node
|
||||||
|
|
Loading…
Reference in New Issue