Add loop from start mode for animation

This commit is contained in:
Malin Ejdbo
2021-03-18 09:34:38 +01:00
parent c253060b25
commit 3201be5cd6
3 changed files with 73 additions and 6 deletions

View File

@@ -70,10 +70,17 @@ public:
static documentation::Documentation Documentation();
private:
enum class AnimationMode {
Once = 0,
LoopFromStart,
Bounce
};
std::unique_ptr<ghoul::modelgeometry::ModelGeometry> _geometry;
bool _forceRenderInvisible = false;
bool _notifyInvisibleDropped = true;
std::string _animationStart;
AnimationMode _animationMode;
properties::FloatProperty _ambientIntensity;