summaryrefslogtreecommitdiff
path: root/scripts/content_tools
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2016-04-29 11:25:17 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2016-04-29 11:25:17 -0400
commitec471497f5dba41e74afc6864ab0f7100659e1d9 (patch)
tree76500d30565e03a591b744e4296476627ca63c26 /scripts/content_tools
parent3da9762eee8052855089df6aa5d33aea94553c5d (diff)
SL-375, SL-378 - rudimentary logging info to list joint offsets during mesh import. dae_tool.py work to enable joint offset tweaking.
Diffstat (limited to 'scripts/content_tools')
-rw-r--r--scripts/content_tools/dae_tool.py4
1 files changed, 2 insertions, 2 deletions
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: