Skip to content

Commit

Permalink
drag & drop bug fixed: setDetached(false) was missing
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Sep 28, 2024
1 parent 6667cd9 commit 2831766
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/Gui/SimulationInteractionController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ void _SimulationInteractionController::leftMouseButtonPressed(IntVector2D const&
if (!_modes.drawMode) {
_editorController->onSelectObjects(toRealVector2D(mousePos), ImGui::GetIO().KeyCtrl);
_worldPosOnClick = Viewport::mapViewToWorldPosition(toRealVector2D(mousePos));
_simController->setDetached(true);
if (_simController->isSimulationRunning()) {
_simController->setDetached(true);
}

auto shallowData = _simController->getSelectionShallowData(*_worldPosOnClick);
_selectionPositionOnClick = {shallowData.centerPosX, shallowData.centerPosY};
Expand Down

0 comments on commit 2831766

Please sign in to comment.