Skip to content

Add cursor style progress reporting to glTF import/export#2705

Open
Clonephaze wants to merge 1 commit into
KhronosGroup:mainfrom
Clonephaze:main
Open

Add cursor style progress reporting to glTF import/export#2705
Clonephaze wants to merge 1 commit into
KhronosGroup:mainfrom
Clonephaze:main

Conversation

@Clonephaze

Copy link
Copy Markdown

Show progress during long-running glTF import and export operations using Blender's cursor-based progress indicator (bpy.context.window_manager.progress_begin/update/end), which animates the user's cursor to signal activity.

Exporter (export.py):

  • progress_begin/end wraps the full save() pipeline in a try/finally
  • Updates at key stages: pre-export callbacks, gather, buffer/image finalize, extension fixup, file write
  • __export() signature updated to accept wm for mid-function updates

Importer (blender_gltf.py, scene.py):

  • progress_begin/end wraps _create() in a try/finally
  • BlenderScene.create() accepts an optional wm=None parameter so import flow can update at the three main sub-stages: compute_vnodes, create_vnode (object/mesh/material creation), and create_animations
  • Default wm=None keeps the signature backward-compatible for any external callers

Show progress during long-running glTF import and export operations by using bpy.context.window_manager.progress_begin/update/end. The exporter now begins a progress bar, updates at key stages (pre-export, gather, buffer/image finalize, post-export, write) and ensures progress_end in a finally block. __export signature was changed to accept wm, and BlenderScene.create now accepts an optional wm so import flow can update progress as well; BlenderGlTF._create wraps the import steps with progress updates. This improves user feedback during lengthy IO and keeps original functionality intact.
@CLAassistant

CLAassistant commented May 30, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@Clonephaze
Clonephaze marked this pull request as draft May 30, 2026 02:21
@Clonephaze
Clonephaze marked this pull request as ready for review May 30, 2026 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants