fix(Blenvy:Blender):

* disabled manifest for 4.2 for now
* fixed missing variable for materials
This commit is contained in:
kaosat.dev 2024-07-22 00:50:49 +02:00
parent 16a28ab760
commit 4a72ed68bf
3 changed files with 2 additions and 2 deletions

View File

@ -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")

View File

@ -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