move shape key textures to dedicated directory

This commit is contained in:
QuantumCoderQC 2021-10-28 15:47:49 +02:00
parent b7cafbb4e3
commit 13a2f4538a
2 changed files with 7 additions and 1 deletions

View File

@ -1130,7 +1130,7 @@ class ArmoryExporter:
# Max shape keys supported
max_shape_keys = 32
# Path to store shape key textures
output_dir = bpy.path.abspath('//') + "Bundled\\"
output_dir = bpy.path.abspath('//') + "MorphTargets\\"
name = bobject.data.name
vert_pos = []
vert_nor = []

View File

@ -87,6 +87,12 @@ project.addSources('Sources');
for file in glob.glob("Bundled/**", recursive=True):
if os.path.isfile(file):
assets.add(file)
# Auto-add shape key textures if exists
if os.path.exists('MorphTargets'):
for file in glob.glob("MorphTargets/**", recursive=True):
if os.path.isfile(file):
assets.add(file)
# Add project shaders
if os.path.exists('Shaders'):