Skip to content

Commit

Permalink
Fix bug with Blender 3.6 load_post handler
Browse files Browse the repository at this point in the history
  • Loading branch information
benrugg committed Jul 13, 2023
1 parent 6356599 commit 43a9b00
Show file tree
Hide file tree
Showing 2 changed files with 3 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, 9, 0),
"version": (0, 9, 1),
"blender": (3, 0, 0),
"location": "Render Properties > AI Render",
"warning": "",
Expand Down
5 changes: 2 additions & 3 deletions handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@


@persistent
def load_post_handler(context):
def load_post_handler(loaded_filename):
"""Handle new blender file load (and new scene load)"""
if not context:
context = bpy.context
context = bpy.context

# if AI Render has been enabled in this file, do the enable steps
# right now, to ensure everything is running and in place
Expand Down

0 comments on commit 43a9b00

Please sign in to comment.