summaryrefslogtreecommitdiff
path: root/imgtest/src/ofApp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'imgtest/src/ofApp.cpp')
-rw-r--r--imgtest/src/ofApp.cpp22
1 files changed, 12 insertions, 10 deletions
diff --git a/imgtest/src/ofApp.cpp b/imgtest/src/ofApp.cpp
index 3f33d8d..411c5c2 100644
--- a/imgtest/src/ofApp.cpp
+++ b/imgtest/src/ofApp.cpp
@@ -61,17 +61,19 @@ void ofApp::update(){
strm << "fps: " << ofGetFrameRate();
ofSetWindowTitle(strm.str());
+ if (currentImage){
+ if (currentImage->update()){ //if returns true, switch images
+ currentImage=currentImage->link;
+ currentImage->start();
+ ofLogNotice() << "Switched images";
+ currentFrame=0;
+ //viewpoint.resetTransform(); //or we get a glitch for no apparent reason, or not
+ currentImage->update();
+ }
+ }
+
- if (currentImage->update()){ //if returns true, switch images
- currentImage=currentImage->link;
- currentImage->start();
- ofLogNotice() << "Switched images";
- currentFrame=0;
- //viewpoint.resetTransform(); //or we get a glitch for no apparent reason, or not
- currentImage->update();
- }
-
- //viewpoint misbehaves the first frame it is moved.
+ //viewpoint misbehaves the first frame it is moved?
}