summaryrefslogtreecommitdiffstats
path: root/src/knot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/knot.cpp')
-rw-r--r--src/knot.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/knot.cpp b/src/knot.cpp
index b2f6dbe62..8296891f4 100644
--- a/src/knot.cpp
+++ b/src/knot.cpp
@@ -471,9 +471,7 @@ void SPKnot::updateCtrl() {
void SPKnot::_setCtrlState() {
int state = SP_KNOT_STATE_NORMAL;
- if (this->flags | SP_KNOT_VISIBLE) {
- return;
- } else if (this->flags & SP_KNOT_DRAGGING) {
+ if (this->flags & SP_KNOT_DRAGGING) {
state = SP_KNOT_STATE_DRAGGING;
} else if (this->flags & SP_KNOT_MOUSEOVER) {
state = SP_KNOT_STATE_MOUSEOVER;