From ec471497f5dba41e74afc6864ab0f7100659e1d9 Mon Sep 17 00:00:00 2001 From: "Brad Payne (Vir Linden)" Date: Fri, 29 Apr 2016 11:25:17 -0400 Subject: SL-375, SL-378 - rudimentary logging info to list joint offsets during mesh import. dae_tool.py work to enable joint offset tweaking. --- scripts/content_tools/dae_tool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/content_tools/dae_tool.py b/scripts/content_tools/dae_tool.py index 08d78b1df9..8ac6c7582f 100644 --- a/scripts/content_tools/dae_tool.py +++ b/scripts/content_tools/dae_tool.py @@ -47,8 +47,8 @@ def mesh_lock_offsets(tree, joints): continue if joint_node.get("type") != "JOINT": continue - if joint_node.get("name") in joints: - for matrix_node in joint_node.iter(): + if joint_node.get("name") in joints or "bone" in joints: + for matrix_node in list(joint_node): if "matrix" in matrix_node.tag: floats = [float(x) for x in matrix_node.text.split()] if len(floats) == 16: -- cgit v1.2.3