Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Duroure <julien.duroure@gmail.com>2019-12-14 10:42:04 +0300
committerJulien Duroure <julien.duroure@gmail.com>2019-12-14 10:42:04 +0300
commit18246268e802958bf02ffa14c764d2cc32ddb4d4 (patch)
tree9359d37137116430f478945f938e71a1d3be8929 /io_scene_gltf2/blender/exp/gltf2_blender_gather_mesh.py
parent13b7618409aac26eb512133373828ab9e92a6ac7 (diff)
glTF exporter: define a user extension API
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_mesh.py')
-rwxr-xr-xio_scene_gltf2/blender/exp/gltf2_blender_gather_mesh.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_mesh.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_mesh.py
index 3af26ced..50df1395 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_mesh.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_mesh.py
@@ -20,6 +20,7 @@ from io_scene_gltf2.io.com import gltf2_io
from io_scene_gltf2.blender.exp import gltf2_blender_gather_primitives
from ..com.gltf2_blender_extras import generate_extras
from io_scene_gltf2.io.com.gltf2_io_debug import print_console
+from io_scene_gltf2.io.exp.gltf2_io_user_extensions import export_user_extensions
@cached
@@ -45,6 +46,17 @@ def gather_mesh(blender_mesh: bpy.types.Mesh,
if len(mesh.primitives) == 0:
print_console("WARNING", "Mesh '{}' has no primitives and will be omitted.".format(mesh.name))
return None
+
+ export_user_extensions('gather_mesh_hook',
+ export_settings,
+ mesh,
+ blender_mesh,
+ blender_object,
+ vertex_groups,
+ modifiers,
+ skip_filter,
+ material_names)
+
return mesh