fix(Blenvy:Blender):
* disabled manifest for 4.2 for now * fixed missing variable for materials
This commit is contained in:
parent
16a28ab760
commit
4a72ed68bf
|
@ -66,7 +66,7 @@ def clear_materials_scene(temp_scene):
|
||||||
# exports the materials used inside the current project:
|
# exports the materials used inside the current project:
|
||||||
# the name of the output path is <materials_folder>/<name_of_your_blend_file>_materials_library.gltf/glb
|
# the name of the output path is <materials_folder>/<name_of_your_blend_file>_materials_library.gltf/glb
|
||||||
def export_materials(materials_to_export, settings, blueprints_data):
|
def export_materials(materials_to_export, settings, blueprints_data):
|
||||||
if len(materials_to_export) >0:
|
if len(materials_to_export) > 0:
|
||||||
gltf_export_settings = generate_gltf_export_settings(settings)
|
gltf_export_settings = generate_gltf_export_settings(settings)
|
||||||
materials_path_full = getattr(settings,"materials_path_full")
|
materials_path_full = getattr(settings,"materials_path_full")
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@ def get_materials_to_export(changes_per_material, changed_export_parameters, blu
|
||||||
local_materials = [material for material in all_materials if material.library is None]
|
local_materials = [material for material in all_materials if material.library is None]
|
||||||
#and (changed_export_parameters or len(changes_per_material.keys()) > 0 )
|
#and (changed_export_parameters or len(changes_per_material.keys()) > 0 )
|
||||||
|
|
||||||
|
materials_to_export = []
|
||||||
if change_detection and not changed_export_parameters:
|
if change_detection and not changed_export_parameters:
|
||||||
changed_materials = []
|
changed_materials = []
|
||||||
|
|
||||||
|
@ -27,5 +28,4 @@ def get_materials_to_export(changes_per_material, changed_export_parameters, blu
|
||||||
materials_to_export = list(set(changed_materials + materials_not_on_disk + materials_always_export))
|
materials_to_export = list(set(changed_materials + materials_not_on_disk + materials_always_export))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return materials_to_export
|
return materials_to_export
|
||||||
|
|
Loading…
Reference in New Issue