diff options
| author | Tim Redfern <tim@getdrop.com> | 2017-10-29 15:46:09 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2017-10-29 15:46:09 +0000 |
| commit | f8c5d72b24247a9573b57e198bc931803fe96985 (patch) | |
| tree | 5467bcdd7fa28315c77833201c0c463b30a79925 /gui/src/chainImageSet.cpp | |
| parent | bcc4abca24d04b29a929ed063f18a080041fe0be (diff) | |
RC1 - rotation gone crazy
Diffstat (limited to 'gui/src/chainImageSet.cpp')
| -rw-r--r-- | gui/src/chainImageSet.cpp | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/gui/src/chainImageSet.cpp b/gui/src/chainImageSet.cpp index f27cd73..65d2ed4 100644 --- a/gui/src/chainImageSet.cpp +++ b/gui/src/chainImageSet.cpp @@ -339,6 +339,12 @@ void chainImageSet::keyPressed(ofKeyEventArgs &keyargs){ } case 'l':{ //load_chain(); + //doesn't seem to an easy way to draw a system dialog from the background thread + //loadDialog.load("Select a json preset",std::bind(&chainImageSet::loadJson, this, std::placeholders::_1)); //&chainImageSet::loadJson); + + //2017-10-29 14:07:45.615 gui[18960:9070901] -[NSView _registerWithBackdropView] should not be called off of the main thread. Invocation was here: + + ofFileDialogResult openFileResult= ofSystemLoadDialog("Select a json preset"); //Check if the user opened a file @@ -355,6 +361,7 @@ void chainImageSet::keyPressed(ofKeyEventArgs &keyargs){ }else { ofLogVerbose("User hit cancel"); } + break; } @@ -512,9 +519,19 @@ void chainImageSet::updateOutput(){ (*images.begin())->linked=&(*(*images.rbegin())); (*images.rbegin())->setUseTexture(true); - (*images.rbegin())->linkRot=(*images.rbegin())->linked->linkRot; - (*images.rbegin())->linkScale=(*images.rbegin())->linked->linkScale; - + //probably not what we want + /* + if ((*images.rbegin())->linkPos==ofPoint(0,0)){ + (*images.rbegin())->linkPos=(*images.rbegin())->linked->linkPos; + } + if ((*images.rbegin())->linkRot==0.0f){ + (*images.rbegin())->linkRot=(*images.rbegin())->linked->linkRot; + } + if ((*images.rbegin())->linkScale==ofPoint(0,0)){ + (*images.rbegin())->linkScale=(*images.rbegin())->linked->linkScale; + } + */ + printf("Linked: %s -> %s <- %s\n", (*images.rbegin())->filename.c_str(), (*images.rbegin())->link->filename.c_str(), |
