Skip to content

Commit fd7b7f5

Browse files
committed
Fixing spelling error and changing Blender log to warning instead of error, since this is a perfectly valid outcome (with the wrong version of blender)
1 parent 1fae0e3 commit fd7b7f5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/classes/json_data.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def replace_string_to_relative(self, match):
307307
# Remove file from abs path
308308
orig_abs_folder = os.path.dirname(orig_abs_path)
309309

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

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

334334
return data
335335

src/windows/views/blender_listview.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -905,8 +905,8 @@ def Render(self):
905905
if self.canceled:
906906
return
907907
if self.frame_count < 1:
908-
log.error("No frame detected from Blender!")
909-
log.error("Blender output:\n{}".format(
908+
log.warning("No frame detected from Blender!")
909+
log.warning("Blender output:\n{}".format(
910910
self.command_output))
911911
# Show Error that no frames are detected. This is likely caused by
912912
# the wrong command being executed... or an error in Blender.

0 commit comments

Comments
 (0)