Skip to content

Commit

Permalink
fix issue #30
Browse files Browse the repository at this point in the history
  • Loading branch information
wjakob committed Nov 15, 2023
1 parent a13cce6 commit 092f581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,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;
Expand Down

0 comments on commit 092f581

Please sign in to comment.