Skip to content

Commit

Permalink
Fix bug where scene.node_tree doesn’t exist
Browse files Browse the repository at this point in the history
  • Loading branch information
benrugg committed Apr 14, 2023
1 parent f6d6070 commit 9fdd374
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "AI Render - Stable Diffusion in Blender",
"description": "Create amazing images using Stable Diffusion AI",
"author": "Ben Rugg",
"version": (0, 7, 7),
"version": (0, 7, 8),
"blender": (3, 0, 0),
"location": "Render Properties > AI Render",
"warning": "",
Expand Down
7 changes: 4 additions & 3 deletions operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ def enable_air(scene):


def mute_legacy_compositor_node_group(scene):
legacy_node_group = scene.node_tree.nodes.get('AIR')
if legacy_node_group:
legacy_node_group.mute = True
if scene.node_tree and scene.node_tree.nodes:
legacy_node_group = scene.node_tree.nodes.get('AIR')
if legacy_node_group:
legacy_node_group.mute = True


def ensure_air_workspace():
Expand Down

0 comments on commit 9fdd374

Please sign in to comment.