From 4a72ed68bf2024f014b7f3695fcd929fa66141d3 Mon Sep 17 00:00:00 2001 From: "kaosat.dev" Date: Mon, 22 Jul 2024 00:50:49 +0200 Subject: [PATCH] fix(Blenvy:Blender): * disabled manifest for 4.2 for now * fixed missing variable for materials --- tools/blenvy/{blender_manifest.toml => __blender_manifest.toml} | 0 tools/blenvy/add_ons/auto_export/materials/export_materials.py | 2 +- .../add_ons/auto_export/materials/get_materials_to_export.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename tools/blenvy/{blender_manifest.toml => __blender_manifest.toml} (100%) diff --git a/tools/blenvy/blender_manifest.toml b/tools/blenvy/__blender_manifest.toml similarity index 100% rename from tools/blenvy/blender_manifest.toml rename to tools/blenvy/__blender_manifest.toml diff --git a/tools/blenvy/add_ons/auto_export/materials/export_materials.py b/tools/blenvy/add_ons/auto_export/materials/export_materials.py index 67927de..71da1dd 100644 --- a/tools/blenvy/add_ons/auto_export/materials/export_materials.py +++ b/tools/blenvy/add_ons/auto_export/materials/export_materials.py @@ -66,7 +66,7 @@ def clear_materials_scene(temp_scene): # exports the materials used inside the current project: # the name of the output path is /_materials_library.gltf/glb 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) materials_path_full = getattr(settings,"materials_path_full") diff --git a/tools/blenvy/add_ons/auto_export/materials/get_materials_to_export.py b/tools/blenvy/add_ons/auto_export/materials/get_materials_to_export.py index 7118607..c973165 100644 --- a/tools/blenvy/add_ons/auto_export/materials/get_materials_to_export.py +++ b/tools/blenvy/add_ons/auto_export/materials/get_materials_to_export.py @@ -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] #and (changed_export_parameters or len(changes_per_material.keys()) > 0 ) + materials_to_export = [] if change_detection and not changed_export_parameters: 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)) - return materials_to_export