Same euler checks as in gameobject.cpp
| 3046 | |
| 3047 | // Same euler checks as in gameobject.cpp |
| 3048 | static void UpdateEulerToRotation(Node& node) |
| 3049 | { |
| 3050 | dmVMath::Vector4 euler = node.m_Properties[dmGui::PROPERTY_EULER]; |
| 3051 | node.m_Properties[dmGui::PROPERTY_PREV_EULER] = euler; |
| 3052 | dmVMath::Quat r = dmVMath::EulerToQuat(euler.getXYZ()); |
| 3053 | node.m_Properties[dmGui::PROPERTY_ROTATION] = dmVMath::Vector4(r); |
| 3054 | } |
| 3055 | |
| 3056 | static inline bool Vec3Equals(const uint32_t* a, const uint32_t* b) |
| 3057 | { |
no test coverage detected