Skip to content

Commit

Permalink
Fixing spelling error and changing Blender log to warning instead of …
Browse files Browse the repository at this point in the history
…error, since this is a perfectly valid outcome (with the wrong version of blender)
  • Loading branch information
jonoomph committed Aug 21, 2021
1 parent 1fae0e3 commit fd7b7f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/classes/json_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def replace_string_to_relative(self, match):
# Remove file from abs path
orig_abs_folder = os.path.dirname(orig_abs_path)

# Calculate new relateive path
# Calculate new relative path
new_rel_path_folder = os.path.relpath(orig_abs_folder, path_context.get("new_project_folder", ""))
new_rel_path = os.path.join(new_rel_path_folder, file_path).replace("\\", "/")
new_rel_path = json.dumps(new_rel_path, ensure_ascii=False)
Expand All @@ -329,7 +329,7 @@ def convert_paths_to_relative(self, file_path, previous_path, data):
data = re.sub(path_regex, self.replace_string_to_relative, data)

except Exception as ex:
log.error("Error while converting absolute paths to relative paths: %s" % str(ex))
log.warning("Failed converting absolute paths to relative paths: %s" % str(ex))

return data

Expand Down
4 changes: 2 additions & 2 deletions src/windows/views/blender_listview.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,8 +905,8 @@ def Render(self):
if self.canceled:
return
if self.frame_count < 1:
log.error("No frame detected from Blender!")
log.error("Blender output:\n{}".format(
log.warning("No frame detected from Blender!")
log.warning("Blender output:\n{}".format(
self.command_output))
# Show Error that no frames are detected. This is likely caused by
# the wrong command being executed... or an error in Blender.
Expand Down

0 comments on commit fd7b7f5

Please sign in to comment.