From 858190ed2ef43771c706e041c7f9141d13ea6713 Mon Sep 17 00:00:00 2001 From: vetal l Date: Wed, 10 Jan 2024 13:55:15 +0300 Subject: [PATCH] Update slicemt.py (#2276) - Added /q key for updtset call to remove unnecessary info - Added /source/.scratch file creation, so composer ignore source folder --- tools/slicemt.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/slicemt.py b/tools/slicemt.py index 9109d90d81..026a33b23d 100644 --- a/tools/slicemt.py +++ b/tools/slicemt.py @@ -96,11 +96,14 @@ def CheckAffectedFiles(ArgPath,ArgTime): print('') # Set updtset.cmd path -UpdateCmd = '\\'.join(PathDetails[:PathDetails.index('gfx')]) + '\\tools\\updtset.cmd ' + TilesetName +UpdateCmd = '\\'.join(PathDetails[:PathDetails.index('gfx')]) + '\\tools\\updtset.cmd /q ' + TilesetName UpdatePath = '\\'.join(PathDetails[:PathDetails.index('gfx')]) + '\\tools\\' OutPath = FullPath + '\\..\\' +# Mark source folder as scratch, so composer ignore it +Path(FullPath+'\\.scratch').touch() + # Detect source files for variants StartTime = time.time() Patterns = [ '*_var*.png' ]