From 06b76ddb6c569f09d66c591f9c08196e2cada4c7 Mon Sep 17 00:00:00 2001 From: Nathan Vegdahl Date: Sat, 30 Jul 2016 19:41:51 -0700 Subject: [PATCH] Fixed bug in PsychoBlend. On some systems Python would complain about the "progress" variable being accessed without it existing yet. Weird. But this fixes it. --- psychoblend/render.py | 1 + 1 file changed, 1 insertion(+) diff --git a/psychoblend/render.py b/psychoblend/render.py index c971769..d887b5a 100644 --- a/psychoblend/render.py +++ b/psychoblend/render.py @@ -134,6 +134,7 @@ class PsychopathRender(bpy.types.RenderEngine): # Update render progress bar output += self._process.stdout.read1(2**16) outputs = output.rsplit(b'\r') + progress = 0.0 if len(outputs) > 0 and outputs[-1][-1] == b"%"[0]: try: progress = float(outputs[-1][:-1])