Skip to content

Commit

Permalink
Merge pull request #3100 from ferdnyc/blender-inject-fix
Browse files Browse the repository at this point in the history
Blender: Fix injection of params
  • Loading branch information
ferdnyc authored Nov 26, 2019
2 parents 211eed6 + 9d54586 commit 2b386db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/windows/views/blender_listview.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ def inject_params(self, path, frame=None):
script_body = f.read()

# modify script variable
script_body = script_body.replace("#INJECT_PARAMS_HERE", user_params)
script_body = script_body.replace("# INJECT_PARAMS_HERE", user_params)

# Write update script
with open(path, "w", encoding="UTF-8", errors="strict") as f:
Expand Down Expand Up @@ -719,7 +719,7 @@ def Render(self, blend_file_path, target_script, preview_mode=False):
# Shell the blender command to create the image sequence
command_get_version = [self.blender_exec_path, '-v']
command_render = [self.blender_exec_path, '-b', self.blend_file_path, '-P', self.target_script]

# debug info
# NOTE: If the length of the command_render list changes, update to match!
log.info("Blender command: {} {} '{}' {} '{}'".format(*command_render))
Expand Down

0 comments on commit 2b386db

Please sign in to comment.