diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2019-05-07 12:15:22 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2019-05-07 12:15:22 +0300 |
commit | 42508e1815c6f9b1ec93f4aeb77cefa93072593d (patch) | |
tree | e1c6f4f969a68584d561526f82f0ce5a16d12064 /io_scene_gltf2/blender | |
parent | ca0c66f7bb72c665420628fe4951f3f0d7970518 (diff) |
glTF importer: Use debug value 101 to display current node importing
Diffstat (limited to 'io_scene_gltf2/blender')
-rwxr-xr-x | io_scene_gltf2/blender/imp/gltf2_blender_gltf.py | 6 | ||||
-rwxr-xr-x | io_scene_gltf2/blender/imp/gltf2_blender_node.py | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py b/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py index c3b511a2..fefb8095 100755 --- a/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py +++ b/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py @@ -29,6 +29,12 @@ class BlenderGlTF(): bpy.context.scene.render.engine = 'BLENDER_EEVEE' BlenderGlTF.pre_compute(gltf) + gltf.display_current_node = 0 + if gltf.data.nodes is not None: + gltf.display_total_nodes = len(gltf.data.nodes) + else: + gltf.display_total_nodes = "?" + active_object_name_at_end = None if gltf.data.scenes is not None: for scene_idx, scene in enumerate(gltf.data.scenes): diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_node.py b/io_scene_gltf2/blender/imp/gltf2_blender_node.py index 282144ba..76dadcc1 100755 --- a/io_scene_gltf2/blender/imp/gltf2_blender_node.py +++ b/io_scene_gltf2/blender/imp/gltf2_blender_node.py @@ -34,6 +34,10 @@ class BlenderNode(): pynode.blender_object = "" pynode.parent = parent + gltf.display_current_node += 1 + if bpy.app.debug_value == 101: + gltf.log.critical("Node " + str(gltf.display_current_node) + " of " + str(gltf.display_total_nodes) + " (idx " + str(node_idx) + ")") + if pynode.mesh is not None: instance = False |