Fix custom material export when scene is exported in arm format
See af247f1876
for reference
This commit is contained in:
parent
6ffa58fb6b
commit
3260e627ce
|
@ -112,7 +112,8 @@ def parse(material: Material, mat_data, mat_users: Dict[Material, List[Object]],
|
|||
if wrd.arm_single_data_file:
|
||||
mat_data['shader'] = shader_data_name
|
||||
else:
|
||||
ext = '' if wrd.arm_minimize else '.json'
|
||||
# Make sure that custom materials are not expected to be in .arm format
|
||||
ext = '' if wrd.arm_minimize and material.arm_custom_material == "" else '.json'
|
||||
mat_data['shader'] = shader_data_name + ext + '/' + shader_data_name
|
||||
|
||||
return sd, rpasses
|
||||
|
|
Loading…
Reference in a new issue