Skip to content

Commit

Permalink
Fix: SpaceView3D' object has no attribute 'node_tree' Error
Browse files Browse the repository at this point in the history
  • Loading branch information
Tams3d authored Aug 19, 2024
1 parent 2454f88 commit 25bdae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def store_mouse_cursor(context, event):

@classmethod
def poll(cls, context):
return context.space_data.node_tree
return hasattr(context.space_data, 'node_tree')

@classmethod
def description(self, context, props):
Expand Down

0 comments on commit 25bdae5

Please sign in to comment.