Skip to content

Transform your 3D texturing workflow with the power of generative AI, directly within Blender!

make inpainting context render background same color as fallback color

sakalonde3ab4036a13f
diff --git a/stablegen/generator.py b/stablegen/generator.py
index d731fc7..fdabd47 100644
--- a/stablegen/generator.py
+++ b/stablegen/generator.py
@@ -650,7 +650,7 @@ class ComfyUIGenerate(bpy.types.Operator):
if self._current_image < len(self._cameras) - 1:
next_camera_id = self._current_image + 1
export_visibility(context, camera_visibility=self._cameras[self._current_image]) # Export mask for current view
- export_emit_image(context, camera_id=next_camera_id) # Export render for next view
+ export_emit_image(context, camera_id=next_camera_id, bg_color=context.scene.fallback_color) # Export render for next view
# Set the event to signal the end of the process
self._wait_event.set()
return None