Blender_bevy_components_workflow icon indicating copy to clipboard operation
Blender_bevy_components_workflow copied to clipboard

Materials don't get exported

Open DasLixou opened this issue 1 year ago • 10 comments

When I disable Export materials library to embed the materials, everything works, but when it's enabled, it doesn't even generate a materials folder and can't load the materials

DasLixou avatar Aug 10 '24 13:08 DasLixou

I have noticed that the material is not exported right after you create the new blueprint. If you make a modification to the material it gets correctly exported. There’s probably something in the change detection not realizing that new blieprints have changed materials.

mmatvein avatar Aug 10 '24 21:08 mmatvein

weird. I tried reassigning materials but that did nothing. But yeah, chaning a color for a single material made all export correctly :+1:

DasLixou avatar Aug 11 '24 09:08 DasLixou

@DasLixou & @mmatvein did you have those issue with the pre-generated Blender add-on zip file or did you create the zip file yourselves ?

kaosat-dev avatar Aug 12 '24 20:08 kaosat-dev

I am having the same exact issue with the latest pre alpha release zip file of the blenvy addon, and confirmed that @mmatvein is correct with their workaround. Thanks for the help!

armin-th avatar Aug 13 '24 05:08 armin-th

I first encountered the issue using the zip file referred to in the quickstart. Right now I've got the plugin dirtily sym-linked into the Blender add-ons directory, and the same issue persists.

mmatvein avatar Aug 13 '24 05:08 mmatvein

Hmm this one is really odd, because the code when there aren't any materials yet is absolutely trivial : image It literally just goes through the list of materials, and checks if the exported material file already exists image

I must be missing something obvious (and hard to debug as I cannot reproduce it, even when using a fresh install of the add-on )

kaosat-dev avatar Aug 13 '24 11:08 kaosat-dev

Perhaps I should also specify I am using blender 4.2, not 3.x, and that might be the difference? 🤔

armin-th avatar Aug 13 '24 12:08 armin-th

what is change_detection here?

DasLixou avatar Aug 13 '24 14:08 DasLixou

what is change_detection here?

It is the flag (that you can set in the ui) that controls whether change detection is enabled or not

kaosat-dev avatar Aug 18 '24 11:08 kaosat-dev

Perhaps I should also specify I am using blender 4.2, not 3.x, and that might be the difference? 🤔

It should not make any difference. There are a few very minor UI differences in Blenvy between 4.x & 3.x but it does not have any influence on the export process

kaosat-dev avatar Aug 18 '24 11:08 kaosat-dev