mirror of
https://github.com/kaosat-dev/Blender_bevy_components_workflow.git
synced 2024-12-26 17:44:11 +00:00
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:
|
||||
# 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):
|
||||
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")
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user