oops, correct version of wrapper that quotes special characters

This commit is contained in:
Bruno Postle
2022-09-13 14:18:04 +01:00
committed by Dion Moult
parent fccc233f42
commit 68e2bb1fa7
+2 -2
View File
@@ -8,7 +8,7 @@
: ${BLENDER_EXE:=blender} : ${BLENDER_EXE:=blender}
if [[ $# -eq 1 && -f "$@" ]]; then if [[ $# -eq 1 && -f "$@" ]]; then
"${BLENDER_EXE}" --python-expr 'import bpy; bpy.data.collections.remove(bpy.data.collections.get("Collection")); bpy.ops.bim.load_project(filepath="'$@'")' "${BLENDER_EXE}" --python-expr 'import bpy; bpy.data.collections.remove(bpy.data.collections[0]); bpy.ops.bim.load_project(filepath="'"$@"'")'
else else
"${BLENDER_EXE}" --python-expr 'import bpy; bpy.data.collections.remove(bpy.data.collections.get("Collection")); bpy.ops.bim.create_project()' "${BLENDER_EXE}" --python-expr 'import bpy; bpy.data.collections.remove(bpy.data.collections[0]); bpy.ops.bim.create_project()'
fi; fi;