diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2019-02-28 21:34:53 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2019-02-28 21:34:53 +0300 |
commit | 061fd834fb170374ad3d06bfd438af8fe2395eaf (patch) | |
tree | c0f4f183769cf05243c4a9bcb78ceeb3c40b3790 /io_scene_gltf2 | |
parent | 07061343a2753f9ea97e38505e9e49e26e75312f (diff) |
glTF importer: cleanup, remove uneeded parameter
Diffstat (limited to 'io_scene_gltf2')
-rwxr-xr-x | io_scene_gltf2/blender/imp/gltf2_blender_node.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_node.py b/io_scene_gltf2/blender/imp/gltf2_blender_node.py index 589ae47e..b707878c 100755 --- a/io_scene_gltf2/blender/imp/gltf2_blender_node.py +++ b/io_scene_gltf2/blender/imp/gltf2_blender_node.py @@ -80,7 +80,7 @@ class BlenderNode(): if not (pynode.mesh and pynode.skin is not None): BlenderNode.set_transforms(gltf, node_idx, pynode, obj, parent) pynode.blender_object = obj.name - BlenderNode.set_parent(gltf, pynode, obj, parent) + BlenderNode.set_parent(gltf, obj, parent) if instance == False: BlenderMesh.set_mesh(gltf, gltf.data.meshes[pynode.mesh], mesh, obj) @@ -99,7 +99,7 @@ class BlenderNode(): obj = BlenderCamera.create(gltf, pynode.camera) BlenderNode.set_transforms(gltf, node_idx, pynode, obj, parent) # TODO default rotation of cameras ? pynode.blender_object = obj.name - BlenderNode.set_parent(gltf, pynode, obj, parent) + BlenderNode.set_parent(gltf, obj, parent) if pynode.children: for child_idx in pynode.children: @@ -131,7 +131,7 @@ class BlenderNode(): BlenderNode.set_transforms(gltf, node_idx, pynode, obj, parent, correction=True) pynode.blender_object = obj.name pynode.correction_needed = True - BlenderNode.set_parent(gltf, pynode, obj, parent) + BlenderNode.set_parent(gltf, obj, parent) if pynode.children: for child_idx in pynode.children: @@ -151,14 +151,14 @@ class BlenderNode(): bpy.data.scenes[gltf.blender_scene].collection.objects.link(obj) BlenderNode.set_transforms(gltf, node_idx, pynode, obj, parent) pynode.blender_object = obj.name - BlenderNode.set_parent(gltf, pynode, obj, parent) + BlenderNode.set_parent(gltf, obj, parent) if pynode.children: for child_idx in pynode.children: BlenderNode.create(gltf, child_idx, node_idx) @staticmethod - def set_parent(gltf, pynode, obj, parent): + def set_parent(gltf, obj, parent): """Set parent.""" if parent is None: return |