Skip to content

Commit

Permalink
Version 1.0.4
Browse files Browse the repository at this point in the history
Update dependencies
Minor clean-up
Add -v option
Add gun-metal example from quixel
  • Loading branch information
mjurczyk committed Dec 25, 2022
1 parent eb44ac5 commit a2f723e
Show file tree
Hide file tree
Showing 12 changed files with 2,805 additions and 236 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
.DS_Store
8 changes: 8 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

const Jimp = require('jimp');
const fs = require('fs-extra');
const package = require('./package.json');

const QuixelMapping = {
't3roughness': [ 'Roughness', 'roughness' ],
Expand Down Expand Up @@ -30,6 +31,13 @@ if (!arg1 && !arg2) {
return;
}

const cleanArg1 = arg1.split('-').join('');

if (['version', 'v'].includes(cleanArg1)) {
console.info('quixel-to-three', `v${package.version}`);
return;
}

let pathBase;
const isPathValid = arg1 && Object.keys(QuixelMapping).reduce((valid, next) => {
const split = `${arg1}`.split(new RegExp(QuixelMapping[next].join('|')));
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a2f723e

Please sign in to comment.