Skip to content

Commit

Permalink
[blender] Provide script's relative path with `${NODE_SOURCECODE_FOLD…
Browse files Browse the repository at this point in the history
…ER}`

This prevents having an absolute path for the script, which led to errors
when opening, for example, a project in another environment.
  • Loading branch information
cbentejac committed Dec 26, 2024
1 parent b7ea22b commit 8ed376f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meshroom/nodes/blender/ScenePreview.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ScenePreview(desc.CommandLineNode):
name="script",
label="Script",
description="Path to the internal script for rendering in Blender.",
value=os.path.join(currentDir, "scripts", "preview.py"),
value="${NODE_SOURCECODE_FOLDER}/scripts/preview.py",
invalidate=False,
group="",
advanced=True,
Expand Down

0 comments on commit 8ed376f

Please sign in to comment.