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>2020-03-20 00:44:06 +0300
committerJulien Duroure <julien.duroure@gmail.com>2020-03-20 00:44:06 +0300
commit191bcee579b30af4098fb2af701470f8b05b6065 (patch)
tree3fe837f79b4c40b79eb9e4381390f6974b3859a4 /io_scene_gltf2/blender/exp/gltf2_blender_gather_primitives.py
parentdc4c83cffc6b6db19f757db5012050a234f00424 (diff)
glTF export: manage collection instances / linked collection / armature proxy
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_primitives.py')
-rwxr-xr-xio_scene_gltf2/blender/exp/gltf2_blender_gather_primitives.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_primitives.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_primitives.py
index cca86432..f841f0e2 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_primitives.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_primitives.py
@@ -33,6 +33,7 @@ from io_scene_gltf2.io.com.gltf2_io_debug import print_console
@cached
def gather_primitives(
blender_mesh: bpy.types.Mesh,
+ library: Optional[str],
blender_object: Optional[bpy.types.Object],
vertex_groups: Optional[bpy.types.VertexGroups],
modifiers: Optional[bpy.types.ObjectModifiers],
@@ -46,7 +47,7 @@ def gather_primitives(
"""
primitives = []
- blender_primitives = __gather_cache_primitives(blender_mesh, blender_object,
+ blender_primitives = __gather_cache_primitives(blender_mesh, library, blender_object,
vertex_groups, modifiers, export_settings)
for internal_primitive in blender_primitives:
@@ -82,6 +83,7 @@ def gather_primitives(
@cached
def __gather_cache_primitives(
blender_mesh: bpy.types.Mesh,
+ library: Optional[str],
blender_object: Optional[bpy.types.Object],
vertex_groups: Optional[bpy.types.VertexGroups],
modifiers: Optional[bpy.types.ObjectModifiers],
@@ -93,7 +95,7 @@ def __gather_cache_primitives(
primitives = []
blender_primitives = gltf2_blender_extract.extract_primitives(
- None, blender_mesh, blender_object, vertex_groups, modifiers, export_settings)
+ None, blender_mesh, library, blender_object, vertex_groups, modifiers, export_settings)
for internal_primitive in blender_primitives:
primitive = {