Skip to content

Commit

Permalink
fix(gltf_auto_export):
Browse files Browse the repository at this point in the history
 * fixed non blueprints exports
 * removed triggering of autoexport whenever the settings are applied, too agressive
  • Loading branch information
kaosat-dev committed Feb 4, 2024
1 parent a7d5202 commit 08c9ebe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tools/gltf_auto_export/auto_export/auto_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def auto_export(changes_per_scene, changed_export_parameters, addon_prefs):

else:
for scene_name in main_scene_names:
export_main_scene(bpy.data.scenes[scene_name], folder_path, addon_prefs)
export_main_scene(bpy.data.scenes[scene_name], folder_path, addon_prefs, [])

except Exception as error:
print(traceback.format_exc())
Expand Down
8 changes: 5 additions & 3 deletions tools/gltf_auto_export/auto_export/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,11 @@ def execute(self, context):
self.save_settings(context)

changes_per_scene = context.window_manager.auto_export_tracker.changed_objects_per_scene

#determine changed parameters & do the export
auto_export(changes_per_scene, self.did_export_settings_change(), self)
#determine changed parameters
params_changed = self.did_export_settings_change()
#& do the export
if self.direct_mode: #Do not auto export when applying settings in the menu, do it on save only
auto_export(changes_per_scene, params_changed, self)
# cleanup
bpy.app.timers.register(bpy.context.window_manager.auto_export_tracker.enable_change_detection, first_interval=1)
return {'FINISHED'}
Expand Down

0 comments on commit 08c9ebe

Please sign in to comment.