This commit is contained in:
Ziyi 2024-02-15 14:55:54 +01:00
parent 43b180a44f
commit b9e3b4c29b
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ NoriObject *loadFromXML(const std::string &filename) {
case ERotate: {
check_attributes(node, { "angle", "axis" });
float angle = degToRad(toFloat(node.attribute("angle").value()));
Eigen::Vector3f axis = toVector3f(node.attribute("axis").value());
Eigen::Vector3f axis = toVector3f(node.attribute("axis").value()).normalized();
transform = Eigen::AngleAxis<float>(angle, axis) * transform;
}
break;