Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions worldeditor/src/screens/scenecomposer/objectcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
#include <editor/projectmanager.h>
#include <editor/settingsmanager.h>

#include <QDebug>

namespace {
const char *gBackgroundColor("General/Colors/Background_Color");
const char *gIsolationColor("General/Colors/Isolation_Color");
Expand Down Expand Up @@ -229,6 +231,15 @@ void ObjectController::update() {
}
}

if(Input::isMouseButtonDown(Input::MOUSE_LEFT)) {
if(!m_drag) {
if(Handles::s_Axes) {
m_axes = Handles::s_Axes;
setDrag(true);
}
}
}

if(Input::isMouseButtonUp(Input::MOUSE_LEFT)) {
if(!m_drag) {
if(!m_canceled) {
Expand Down Expand Up @@ -282,10 +293,6 @@ void ObjectController::update() {
if(Input::isKey(Input::KEY_LEFT_SHIFT)) {
UndoManager::instance()->push(new DuplicateObjects(this));
}
if(Handles::s_Axes) {
m_axes = Handles::s_Axes;
setDrag(true);
}
} else {
emit sceneUpdated(nullptr);
}
Expand Down