Grab nodes in view

This commit is contained in:
brunoherbelin
2020-04-21 17:08:46 +02:00
parent 19b207e80b
commit cbc2eb4bdc
3 changed files with 25 additions and 0 deletions

View File

@@ -228,6 +228,8 @@ void UserInterface::handleMouse()
// // drag current
// Log::Info("Dragging %d", current->id());
// current->translation_.x += io.MouseDelta.x * 0.1f;
Mixer::manager().currentView()->grab( glm::vec2(io.MouseClickedPos[ImGuiMouseButton_Left].x, io.MouseClickedPos[ImGuiMouseButton_Left].y), glm::vec2(io.MousePos.x, io.MousePos.y), current);
}
else {