diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2019-02-28 21:26:02 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2019-02-28 21:26:02 +0300 |
commit | 07061343a2753f9ea97e38505e9e49e26e75312f (patch) | |
tree | 0c6a35a5172571ecbb29bfa110702f30a154c824 /io_scene_gltf2 | |
parent | cded9f1783b1a06c4e731276a9e8b1c70243da27 (diff) |
glTF import: Camera can have some children
Diffstat (limited to 'io_scene_gltf2')
-rwxr-xr-x | io_scene_gltf2/blender/imp/gltf2_blender_node.py | 4 |
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: |