PsychoBlend: fixed silly copy/paste bug.

This commit is contained in:
Nathan Vegdahl 2017-06-10 01:58:20 -07:00
parent 7236d2e666
commit 914a13f899
3 changed files with 3 additions and 3 deletions

View File

@ -230,7 +230,7 @@ class RectLamp:
def take_sample(self, render_engine, scene, time): def take_sample(self, render_engine, scene, time):
render_engine.update_stats("", "Psychopath: Collecting '{}' at time {}".format(self.ob.name, time)) render_engine.update_stats("", "Psychopath: Collecting '{}' at time {}".format(self.ob.name, time))
self.time_col += [self.ob.data.color * self.ob.data.energy] self.time_col += [self.ob.data.color * self.ob.data.energy]
if ob.data.shape == 'RECTANGLE': if self.ob.data.shape == 'RECTANGLE':
self.time_dim += [(self.ob.data.size, self.ob.data.size_y)] self.time_dim += [(self.ob.data.size, self.ob.data.size_y)]
else: else:
self.time_dim += [(self.ob.data.size, self.ob.data.size)] self.time_dim += [(self.ob.data.size, self.ob.data.size)]

View File

@ -152,7 +152,7 @@ class PsychoExporter:
self.w.indent(); self.w.indent();
self.w.write("Type [Color]\n") self.w.write("Type [Color]\n")
self.w.write("Color [%f %f %f]\n" % (world.horizon_color[0], world.horizon_color[1], world.horizon_color[2])) self.w.write("Color [%f %f %f]\n" % (world.horizon_color[0], world.horizon_color[1], world.horizon_color[2]))
self.w.unindent(); self.w.unindent()
self.w.write("}\n") self.w.write("}\n")
# Infinite light sources # Infinite light sources

View File

@ -90,7 +90,7 @@ class PsychopathRender(bpy.types.RenderEngine):
try: try:
self._render(scene) self._render(scene)
except: except:
if self.process != None: if self._process != None:
self._process.terminate() self._process.terminate()
raise raise