Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repositioning objects doesn't re-export scene #145

Open
DylanRJohnston opened this issue Feb 23, 2024 · 10 comments · May be fixed by #170
Open

Repositioning objects doesn't re-export scene #145

DylanRJohnston opened this issue Feb 23, 2024 · 10 comments · May be fixed by #170

Comments

@DylanRJohnston
Copy link

Is there any way to force the export each time instead of checking for changes? I'm encountering an issue where repositioning objects in the scene does not cause the auto export to properly save. Only deleting the Scene.glb properly exports the scene.

Screenshot 2024-02-23 at 4 54 49 pm

@DylanRJohnston
Copy link
Author

Screenshot 2024-02-23 at 4 55 35 pm

@DylanRJohnston
Copy link
Author

I can confirm after forking the code that a brute force if True: here and here fixes the issue. Perhaps there could be a setting that just always exports everything? Or would you rather fix up the change detection?

@kaosat-dev
Copy link
Owner

Hi @DylanRJohnston !
Could you tell a bit more about your setup please ?

  • are the objects that you are moving in a main scene, library scene etc ?

  • are the objects blueprints, instances, something else ?

  • I added the ability to force export (really not recommended from my experience, but it can be practical) to this pr: feat(gltf_auto_export): #143

@DylanRJohnston
Copy link
Author

Hey @kaosat-dev, the objects in the scene are collection instances i.e. blueprints. Moving them doesn't seem to trigger the change detection code at all.

@kaosat-dev
Copy link
Owner

Hi @DylanRJohnston :
Very weird, that always worked reliably, and is now also one of the test cases.
thanks for the info, could you please send screenshots of:

  • your export settings
  • your scene with the objects that you are moving, including the outliner ?

@kaosat-dev
Copy link
Owner

@DylanRJohnston could you please send the information above so I can track down the issue ? :) Thanks !

@DylanRJohnston
Copy link
Author

Hey kaosat, apologies for not supplying more information initially, I thought the problem might be easy to reproduce for you since it was happening reliably for me, but since you already have tests covering these cases and given the other problems I've been encountering perhaps something fundamental about my setup is misconfiguration.

Library Outline

Scene Outline

Export Settings

@kaosat-dev
Copy link
Owner

Thanks for the screenshots and information !
I think I might know where the issue comes from, I need to try it out on my end too to double check : your setup seems similar to what I usually use & have in the tests except that your objects in your main scene are nested inside collections.
I'll get back to you once I checked things out.

@kaosat-dev
Copy link
Owner

Ok, tried it out, and still cannot reproduce the issue, change is detected correctly no matter the nesting level of an object ...

@DylanRJohnston
Copy link
Author

How do Blender plugins handle python dependencies? Maybe I'm ending up with slightly different packages due to something in my environment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants