Skip to content

Commit

Permalink
Fix for #81 - input mtl file now bundled with hi-res download
Browse files Browse the repository at this point in the history
  • Loading branch information
gjcope committed Jun 14, 2024
1 parent a83edef commit 250dfde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/server/tasks/SyncObjMtlTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,11 @@ export default class SyncObjMtlTask extends ToolTask
let script = "";
//const objBuffer = fs.readFileSync(objFilePath);
//if(generatedMtl || !objBuffer.includes("mtllib") || !objBuffer.includes("usemtl")) {
if(generatedMtl) {
const scriptPath = path.resolve(this.context.jobDir, "../../scripts/InjectMTL2.vbs");

script = `"${scriptPath}" "${objFilePath}" "${params.mtlFile}"`;
//}
}

const settings: ICscriptToolSettings = {
scriptToExecute: script,
Expand Down

0 comments on commit 250dfde

Please sign in to comment.