Simulation nodes: UI for simulation state items in sidebar #106919

Merged
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 5aef82548f - Show all commits

View File

@ -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