|
@@ -89,12 +89,9 @@ def generate_material_resource(escn_file, export_settings, bl_object,
|
|
logging.error(
|
|
logging.error(
|
|
"%s, in material '%s'", str(exception), material.name
|
|
"%s, in material '%s'", str(exception), material.name
|
|
)
|
|
)
|
|
-
|
|
|
|
- elif export_settings['material_mode'] == 'SPATIAL':
|
|
|
|
|
|
+ else: # Spatial Material
|
|
mat = export_as_spatial_material(material_rsc_name, material)
|
|
mat = export_as_spatial_material(material_rsc_name, material)
|
|
|
|
|
|
- assert mat is not None
|
|
|
|
-
|
|
|
|
# make material-object tuple as an identifier, as uniforms is part of
|
|
# make material-object tuple as an identifier, as uniforms is part of
|
|
# material and they are binded with object
|
|
# material and they are binded with object
|
|
return escn_file.add_internal_resource(mat, (bl_object, material))
|
|
return escn_file.add_internal_resource(mat, (bl_object, material))
|