summaryrefslogtreecommitdiffstats
path: root/ToolGrab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ToolGrab.cpp')
-rw-r--r--ToolGrab.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/ToolGrab.cpp b/ToolGrab.cpp
index 2d2467a..ed27c05 100644
--- a/ToolGrab.cpp
+++ b/ToolGrab.cpp
@@ -15,6 +15,7 @@ ToolGrab::~ToolGrab() {
void ToolGrab::activate() {
pressed = false;
+ editManager->highlightHoveredObject();
editManager->setSelectedObject(NULL);
}
@@ -48,10 +49,12 @@ bool ToolGrab::buttonRelease(unsigned int button) {
}
bool ToolGrab::motion() {
- if(!pressed)
- return false;
+ if(!pressed) {
+ editManager->highlightHoveredObject();
+ return true;
+ }
- Vertex *v = editManager->getHoveredVertex();
+ const Vertex *v = editManager->getHoveredVertex();
if(!v)
return false;