Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blender: Fix injection of params #3100

Merged
merged 1 commit into from
Nov 26, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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