mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-06-06 08:42:35 +00:00
Fixed incorrect order of operations during vertex matrix creation
This commit is contained in:
@@ -184,9 +184,9 @@ namespace
|
|||||||
Eigen::Vector3f scale(localScale[0], localScale[1], localScale[2]);
|
Eigen::Vector3f scale(localScale[0], localScale[1], localScale[2]);
|
||||||
|
|
||||||
Eigen::Affine3f transform = Eigen::Affine3f::Identity();
|
Eigen::Affine3f transform = Eigen::Affine3f::Identity();
|
||||||
transform.scale(scale);
|
|
||||||
transform.rotate(rotation);
|
|
||||||
transform.translate(translation);
|
transform.translate(translation);
|
||||||
|
transform.rotate(rotation);
|
||||||
|
transform.scale(scale);
|
||||||
|
|
||||||
return transform.matrix();
|
return transform.matrix();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user