PsychoBlend: remove unused output path.
This commit is contained in:
parent
ef5b573723
commit
a82c674308
|
@ -119,10 +119,10 @@ class PsychoExporter:
|
|||
else:
|
||||
self.scene.frame_set(frame-1, 1.0+fraction)
|
||||
|
||||
def export_psy(self, export_path, render_image_path):
|
||||
def export_psy(self, export_path):
|
||||
try:
|
||||
f = open(export_path, 'w')
|
||||
self._export_psy(f, export_path, render_image_path)
|
||||
self._export_psy(f, export_path)
|
||||
except ExportCancelled:
|
||||
# Cleanup
|
||||
f.close()
|
||||
|
@ -134,7 +134,7 @@ class PsychoExporter:
|
|||
self.scene.frame_set(self.fr)
|
||||
return True
|
||||
|
||||
def _export_psy(self, f, export_path, render_image_path):
|
||||
def _export_psy(self, f, export_path):
|
||||
self.w = IndentedWriter(f)
|
||||
|
||||
# Info
|
||||
|
@ -149,7 +149,7 @@ class PsychoExporter:
|
|||
self.w.write("Output {\n")
|
||||
self.w.indent()
|
||||
|
||||
self.w.write('Path ["%s"]\n' % render_image_path)
|
||||
self.w.write('Path [""]\n')
|
||||
|
||||
# Output section end
|
||||
self.w.unindent()
|
||||
|
|
|
@ -40,9 +40,9 @@ class PsychopathRender(bpy.types.RenderEngine):
|
|||
return psy_binary
|
||||
return ""
|
||||
|
||||
def _export(self, scene, export_path, render_image_path):
|
||||
def _export(self, scene, export_path):
|
||||
exporter = psy_export.PsychoExporter(self, scene)
|
||||
return exporter.export_psy(export_path, render_image_path)
|
||||
return exporter.export_psy(export_path)
|
||||
|
||||
def _render(self, scene, psy_filepath):
|
||||
psy_binary = PsychopathRender._locate_binary()
|
||||
|
@ -97,12 +97,9 @@ class PsychopathRender(bpy.types.RenderEngine):
|
|||
# Create a temporary file for exporting
|
||||
export_path = get_temp_filename('.psy')
|
||||
|
||||
# Create a temporary file to render into
|
||||
render_image_path = get_temp_filename('.exr')
|
||||
|
||||
# start export
|
||||
self.update_stats("", "Psychopath: Exporting data from Blender")
|
||||
if not self._export(scene, export_path, render_image_path):
|
||||
if not self._export(scene, export_path):
|
||||
# Render cancelled in the middle of exporting,
|
||||
# so just return.
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue
Block a user