From 19a41e5a1095504a524333879593b8945fe8ea06 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 28 Nov 2013 21:26:55 +0100 Subject: Fix iTaSC build error when building with libc++. This was using TreeElement before it was fully defined, which gives undefined behavior that happened to work with other libraries but not libc++. Based on patch by Marcus von Appen, modifications for brevity and to ensure we don't dereference invalid memory. Ref T37477. --- intern/itasc/Armature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intern/itasc/Armature.cpp') diff --git a/intern/itasc/Armature.cpp b/intern/itasc/Armature.cpp index e6f5fda4066..0c736566b25 100644 --- a/intern/itasc/Armature.cpp +++ b/intern/itasc/Armature.cpp @@ -402,7 +402,7 @@ bool Armature::finalize() m_armlength = 0.0; for (i=0; ifirst != "root") { Frame tip = sit->second.segment.pose(m_qKdl(sit->second.q_nr)); length += tip.p.Norm(); -- cgit v1.2.3