Bugfix screenshot in userinterface. Minor cosmetics.

This commit is contained in:
brunoherbelin
2020-05-28 00:01:05 +02:00
parent b9cf0689ec
commit 59e1271259
6 changed files with 75 additions and 42 deletions

View File

@@ -181,8 +181,8 @@ void Handles::draw(glm::mat4 modelview, glm::mat4 projection)
}
else if ( type_ == ROTATE ){
// only once in upper top right corner
glm::vec4 pos = modelview * glm::vec4(1.08f, 1.08f, 0.f, 1.f);
ctm = GlmToolkit::transform(glm::vec3(pos), glm::vec3(0.f), glm::vec3(1.f));
glm::vec4 pos = modelview * glm::vec4(1.0f, 1.0f, 0.f, 1.f);
ctm = GlmToolkit::transform(glm::vec3(pos) + glm::vec3(0.12f, 0.12f, 0.f), glm::vec3(0.f), glm::vec3(1.f));
handle_->draw( ctm, projection );
}