fixed func_static model dragging
[xonotic/netradiant.git] / plugins / entity / doom3group.cpp
index 72048bdbaa3ac7041a14a086e4a89e004f22f3c2..4fbc0ccfb7b20c86162408f75b2132c0489d094a 100644 (file)
@@ -228,8 +228,8 @@ private:
     m_transform.localToParent() = g_matrix4_identity;
     if(isModel())
     {
-      matrix4_translate_by_vec3(m_transform.localToParent(), m_originKey.m_origin);
-      matrix4_multiply_by_matrix4(m_transform.localToParent(), rotation_toMatrix(m_rotationKey.m_rotation));
+      matrix4_translate_by_vec3(m_transform.localToParent(), m_origin);
+      matrix4_multiply_by_matrix4(m_transform.localToParent(), rotation_toMatrix(m_rotation));
     }
     m_transformChanged();
     if(!isModel())