diff --git a/psychoblend/assembly.py b/psychoblend/assembly.py index b4369c4..8d5c9fd 100644 --- a/psychoblend/assembly.py +++ b/psychoblend/assembly.py @@ -230,7 +230,7 @@ class RectLamp: def take_sample(self, render_engine, scene, 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] - if ob.data.shape == 'RECTANGLE': + if self.ob.data.shape == 'RECTANGLE': self.time_dim += [(self.ob.data.size, self.ob.data.size_y)] else: self.time_dim += [(self.ob.data.size, self.ob.data.size)] diff --git a/psychoblend/psy_export.py b/psychoblend/psy_export.py index cfa4546..c6a9007 100644 --- a/psychoblend/psy_export.py +++ b/psychoblend/psy_export.py @@ -152,7 +152,7 @@ class PsychoExporter: self.w.indent(); 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.unindent(); + self.w.unindent() self.w.write("}\n") # Infinite light sources diff --git a/psychoblend/render.py b/psychoblend/render.py index 895ea2f..57bef54 100644 --- a/psychoblend/render.py +++ b/psychoblend/render.py @@ -90,7 +90,7 @@ class PsychopathRender(bpy.types.RenderEngine): try: self._render(scene) except: - if self.process != None: + if self._process != None: self._process.terminate() raise