aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2022-01-08 12:04:57 -0600
committeroldmud0 <oldmud0@users.noreply.github.com>2022-01-08 12:04:57 -0600
commitc07ff3589762329226710ff5aa6db01b7cb9b9cc (patch)
tree525bebccb3e7cd192eae70786fa3810db15b980a
parentc80a0195749acda08ea414db575d10bd0033f062 (diff)
Fix static effects not appearing
Static effects should be treated as infinitely looping animations.
-rw-r--r--src/aolayer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/aolayer.cpp b/src/aolayer.cpp
index 08ee392d..7c899714 100644
--- a/src/aolayer.cpp
+++ b/src/aolayer.cpp
@@ -241,6 +241,8 @@ void EffectLayer::load_image(QString p_filename, bool p_looping)
play_once = true;
continuous = false;
force_continuous = true;
+ cull_image = false;
+
start_playback(p_filename); // path resolution is handled by the caller for EffectLayer objects
play();
}
@@ -315,10 +317,10 @@ void AOLayer::start_playback(QString p_image)
qDebug() << "[AOLayer::start_playback] Stretch:" << stretch << "Filename:" << p_image;
#endif
m_reader.setFileName(p_image);
- if (m_reader.loopCount() == 0)
- play_once = true;
last_max_frames = max_frames;
max_frames = m_reader.imageCount();
+ if (m_reader.loopCount() == 0 && max_frames > 1)
+ play_once = true;
if (!continuous
|| ((continuous) && (max_frames != last_max_frames))
|| max_frames == 0