Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Dec 5, 2023
1 parent ab38b01 commit 97b840a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12

function blenderFileToGltf(blenderVersion, blenderPath, outDirName, done, options = '') {
const { exec } = require('child_process');
const cmd = `${blenderVersion} -b --factory-startup --addons io_hubs_addon -noaudio ${blenderPath} --python export_gltf.py -- ${outDirName} ${options}`;
const cmd = `BLENDER_USER_SCRIPTS=${path.resolve("../")} ${blenderVersion} -b --factory-startup --addons io_hubs_addon -noaudio ${blenderPath} --python export_gltf.py -- ${outDirName} ${options}`;
var prc = exec(cmd, (error, stdout, stderr) => {
//if (stderr) process.stderr.write(stderr);

Expand All @@ -21,7 +21,7 @@ function blenderFileToGltf(blenderVersion, blenderPath, outDirName, done, option

function blenderRoundtripGltf(blenderVersion, gltfPath, outDirName, done, options = '') {
const { exec } = require('child_process');
const cmd = `${blenderVersion} -b --factory-startup --addons io_hubs_addon -noaudio --python roundtrip_gltf.py -- ${gltfPath} ${outDirName} ${options}`;
const cmd = `BLENDER_USER_SCRIPTS=${path.resolve("../")} ${blenderVersion} -b --factory-startup --addons io_hubs_addon -noaudio --python roundtrip_gltf.py -- ${gltfPath} ${outDirName} ${options}`;
var prc = exec(cmd, (error, stdout, stderr) => {
//if (stderr) process.stderr.write(stderr);

Expand Down

0 comments on commit 97b840a

Please sign in to comment.