move shape key textures to dedicated directory
This commit is contained in:
parent
b7cafbb4e3
commit
13a2f4538a
|
@ -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 = []
|
||||
|
|
|
@ -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'):
|
||||
|
|
Loading…
Reference in New Issue