From 11c612d239ef22b6d532ebd70db24b1d65e1cf1f Mon Sep 17 00:00:00 2001
From: Ben Rugg <ben@theregime.com>
Date: Mon, 13 Mar 2023 11:26:52 -0500
Subject: [PATCH] Fix a bug related to a breaking change in Blender 3.5+

---
 __init__.py  | 2 +-
 operators.py | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/__init__.py b/__init__.py
index 67ce8be..1424205 100644
--- a/__init__.py
+++ b/__init__.py
@@ -2,7 +2,7 @@
     "name": "AI Render - Stable Diffusion in Blender",
     "description": "Create amazing images using Stable Diffusion AI",
     "author": "Ben Rugg",
-    "version": (0, 6, 9),
+    "version": (0, 6, 10),
     "blender": (3, 0, 0),
     "location": "Render Properties > AI Render",
     "warning": "",
diff --git a/operators.py b/operators.py
index 85d9855..9601aea 100644
--- a/operators.py
+++ b/operators.py
@@ -86,6 +86,8 @@ def ensure_compositor_node_group(scene):
 
     # otherwise, create a new node group
     node_tree = bpy.data.node_groups.new('AIR_node_group_v1', 'CompositorNodeTree')
+    node_tree.inputs.new('NodeSocketColor', 'Image')
+    node_tree.outputs.new('NodeSocketColor', 'Image')
 
     node_group = compositor_nodes.new('CompositorNodeGroup')
     node_group.node_tree = node_tree