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.
This commit is contained in:
Nathan Vegdahl 2016-07-30 19:41:51 -07:00
parent 7ef5846c89
commit 06b76ddb6c

View File

@ -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])