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 supported
|
||||||
max_shape_keys = 32
|
max_shape_keys = 32
|
||||||
# Path to store shape key textures
|
# Path to store shape key textures
|
||||||
output_dir = bpy.path.abspath('//') + "Bundled\\"
|
output_dir = bpy.path.abspath('//') + "MorphTargets\\"
|
||||||
name = bobject.data.name
|
name = bobject.data.name
|
||||||
vert_pos = []
|
vert_pos = []
|
||||||
vert_nor = []
|
vert_nor = []
|
||||||
|
|
|
@ -87,6 +87,12 @@ project.addSources('Sources');
|
||||||
for file in glob.glob("Bundled/**", recursive=True):
|
for file in glob.glob("Bundled/**", recursive=True):
|
||||||
if os.path.isfile(file):
|
if os.path.isfile(file):
|
||||||
assets.add(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
|
# Add project shaders
|
||||||
if os.path.exists('Shaders'):
|
if os.path.exists('Shaders'):
|
||||||
|
|
Loading…
Reference in a new issue