KhronosGroup / glTF-Blender-IO

Blender glTF 2.0 importer and exporter
https://docs.blender.org/manual/en/latest/addons/import_export/scene_gltf2.html
Apache License 2.0
1.5k stars 319 forks source link

Incorrect wait cursor when exporting #2307

Closed gguishe closed 2 months ago

gguishe commented 3 months ago

Describe the bug When exporting, the wait cursor used seems to be missing.

To Reproduce Steps to reproduce the behavior:

  1. Export a large file and see that the wait cursor is just a black square.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots

.blend file/ .gltf (mandatory) A zipped folder containing a .blend file for exporter issues and a .gltf file for importer issues. Please take care to include all resources, such as textures in the .zip file. If you are not allowed to share your file, make sure to create a new one from scratch that shows the issue. You can also try to delete or modify some data (objects, change textures, replace some meshes by some placeholder), to be able to share it without restriction.

Version OS - Windows-10-10.0.22631-SP0 64 Bits Blender Version - 4.3.0 Alpha, branch: main, commit date: 2024-08-07 22:58, hash: 915be63b016f

Additional context Add any other context about the problem here.

https://github.com/user-attachments/assets/fb68dcbb-03f3-4604-86da-5121d4696cd0

marksteward commented 3 months ago

This technically is the wait cursor, it's putting it into a "progress counter" mode, but only ever sets the progress to 0.

gguishe commented 3 months ago

I see, technically it should show progress from 0 to 100 (like in the attached image), but it just only shows this black square since is not updated. image

In that case the expected wait cursor can be set with just replacing by:

context.window.cursor_set('WAIT')
context.window.cursor_set('DEFAULT')