aboutsummaryrefslogtreecommitdiff
path: root/src/gui/guiScene.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/guiScene.cpp')
-rw-r--r--src/gui/guiScene.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/guiScene.cpp b/src/gui/guiScene.cpp
index 08f119e07..5f4c50b91 100644
--- a/src/gui/guiScene.cpp
+++ b/src/gui/guiScene.cpp
@@ -152,6 +152,15 @@ void GUIScene::setStyles(const std::array<StyleSpec, StyleSpec::NUM_STATES> &sty
setBackgroundColor(style.getColor(StyleSpec::BGCOLOR, m_bgcolor));
}
+/**
+ * Sets the frame loop range for the mesh
+ */
+void GUIScene::setFrameLoop(s32 begin, s32 end)
+{
+ if (m_mesh->getStartFrame() != begin || m_mesh->getEndFrame() != end)
+ m_mesh->setFrameLoop(begin, end);
+}
+
/* Camera control functions */
inline void GUIScene::calcOptimalDistance()