X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmodel%2Fmodel.cpp;fp=src%2Fmodel%2Fmodel.cpp;h=cad62ac2ec0cea30c99e39685adbef0729b6f3a8;hb=b9a63fedbc65e8659c43f7fa381017c0c70a48da;hp=451433bc7e8296d38b37c551883598553ab13248;hpb=f430ad789fe620ad2e8b2b2b99af868372791295;p=blank.git diff --git a/src/model/model.cpp b/src/model/model.cpp index 451433b..cad62ac 100644 --- a/src/model/model.cpp +++ b/src/model/model.cpp @@ -27,6 +27,10 @@ Instance::~Instance() { } +Part::State &Instance::EyesState() noexcept { + return state[model->GetEyesPart().ID()]; +} + glm::mat4 Instance::EyesTransform() const noexcept { return model->GetEyesPart().GlobalTransform(*this); }