diff --git a/mplot/VisualTextModelImplMX.h b/mplot/VisualTextModelImplMX.h index 16467a27..1bdd2fb9 100644 --- a/mplot/VisualTextModelImplMX.h +++ b/mplot/VisualTextModelImplMX.h @@ -159,8 +159,8 @@ namespace mplot { const sm::quaternion& _rotation, const sm::vec _offset, std::array _clr = {0,0,0}) { - this->viewmatrix.rotate (_rotation); this->viewmatrix.translate (_offset); + this->viewmatrix.rotate (_rotation); this->clr_text = _clr; this->setupText (_txt); } diff --git a/mplot/VisualTextModelImplNoMX.h b/mplot/VisualTextModelImplNoMX.h index 1a27e6e8..f7b2ca0c 100644 --- a/mplot/VisualTextModelImplNoMX.h +++ b/mplot/VisualTextModelImplNoMX.h @@ -152,8 +152,8 @@ namespace mplot { const sm::quaternion& _rotation, const sm::vec _offset, std::array _clr = {0,0,0}) { - this->viewmatrix.rotate (_rotation); this->viewmatrix.translate (_offset); + this->viewmatrix.rotate (_rotation); this->clr_text = _clr; this->setupText (_txt); }