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-02-28 21:26:02 +0300
committerJulien Duroure <julien.duroure@gmail.com>2019-02-28 21:26:02 +0300
commit07061343a2753f9ea97e38505e9e49e26e75312f (patch)
tree0c6a35a5172571ecbb29bfa110702f30a154c824 /io_scene_gltf2
parentcded9f1783b1a06c4e731276a9e8b1c70243da27 (diff)
glTF import: Camera can have some children
Diffstat (limited to 'io_scene_gltf2')
-rwxr-xr-xio_scene_gltf2/blender/imp/gltf2_blender_node.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_node.py b/io_scene_gltf2/blender/imp/gltf2_blender_node.py
index 0792b96d..589ae47e 100755
--- a/io_scene_gltf2/blender/imp/gltf2_blender_node.py
+++ b/io_scene_gltf2/blender/imp/gltf2_blender_node.py
@@ -101,6 +101,10 @@ class BlenderNode():
pynode.blender_object = obj.name
BlenderNode.set_parent(gltf, pynode, obj, parent)
+ if pynode.children:
+ for child_idx in pynode.children:
+ BlenderNode.create(gltf, child_idx, node_idx)
+
return
if pynode.is_joint: