Skip to content

Commit 8ed376f

Browse files
committed
[blender] Provide script's relative path with ${NODE_SOURCECODE_FOLDER}
This prevents having an absolute path for the script, which led to errors when opening, for example, a project in another environment.
1 parent b7ea22b commit 8ed376f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meshroom/nodes/blender/ScenePreview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ScenePreview(desc.CommandLineNode):
3232
name="script",
3333
label="Script",
3434
description="Path to the internal script for rendering in Blender.",
35-
value=os.path.join(currentDir, "scripts", "preview.py"),
35+
value="${NODE_SOURCECODE_FOLDER}/scripts/preview.py",
3636
invalidate=False,
3737
group="",
3838
advanced=True,

0 commit comments

Comments
 (0)