glTF exporter: add filter hook for user extensions.

You can change filter tag to change default filtering
This commit is contained in:
Julien Duroure 2022-03-13 11:28:02 +01:00
parent 5a557e72fc
commit 43477e00ce
2 changed files with 3 additions and 1 deletions

View File

@ -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',

View File

@ -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()