[Bf-extensions-cvs] [43477e00] master: glTF exporter: add filter hook for user extensions.

Julien Duroure noreply at git.blender.org
Sun Mar 13 11:28:39 CET 2022


Commit: 43477e00ce44cf561a38365d35c769010392c102
Author: Julien Duroure
Date:   Sun Mar 13 11:28:02 2022 +0100
Branches: master
https://developer.blender.org/rBA43477e00ce44cf561a38365d35c769010392c102

glTF exporter: add filter hook for user extensions.

You can change filter tag to change default filtering

===================================================================

M	io_scene_gltf2/__init__.py
M	io_scene_gltf2/blender/exp/gltf2_blender_gather_tree.py

===================================================================

diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index a9bf80b5..369090e5 100755
--- a/io_scene_gltf2/__init__.py
+++ b/io_scene_gltf2/__init__.py
@@ -4,7 +4,7 @@
 bl_info = {
     'name': 'glTF 2.0 format',
     'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
-    "version": (3, 2, 11),
+    "version": (3, 2, 12),
     'blender': (3, 1, 0),
     'location': 'File > Import-Export',
     'description': 'Import-Export as glTF 2.0',
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_tree.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_tree.py
index 549c4ed0..643cbea0 100644
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_tree.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_tree.py
@@ -5,6 +5,7 @@ import bpy
 import uuid
 
 from . import gltf2_blender_export_keys
+from io_scene_gltf2.io.exp.gltf2_io_user_extensions import export_user_extensions
 from mathutils import Quaternion, Matrix
 
 class VExportNode:
@@ -255,6 +256,7 @@ class VExportTree:
 
     def filter(self):
         self.filter_tag()
+        export_user_extensions('gather_tree_filter_tag_hook', self.export_settings, self)
         self.filter_perform()



More information about the Bf-extensions-cvs mailing list