File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,9 @@ def build_psk(context, options: PskBuildOptions) -> PskBuildResult:
146
146
psk_material .texture_index = len (psk .materials )
147
147
psk .materials .append (psk_material )
148
148
149
- for input_mesh_object in input_objects .mesh_objects :
149
+ context .window_manager .progress_begin (0 , len (input_objects .mesh_objects ))
150
+
151
+ for object_index , input_mesh_object in enumerate (input_objects .mesh_objects ):
150
152
151
153
# MATERIALS
152
154
material_indices = [material_names .index (material_slot .material .name ) for material_slot in input_mesh_object .material_slots ]
@@ -288,6 +290,10 @@ def build_psk(context, options: PskBuildOptions) -> PskBuildResult:
288
290
bpy .data .meshes .remove (mesh_data )
289
291
del mesh_data
290
292
293
+ context .window_manager .progress_update (object_index )
294
+
295
+ context .window_manager .progress_end ()
296
+
291
297
result .psk = psk
292
298
293
299
return result
You can’t perform that action at this time.
0 commit comments