# HG changeset patch # User Teemu Piippo # Date 1656777905 -10800 # Node ID aab8e139a14998c7e34ecb85fccadefc1a21af4e # Parent 23b47902d8576c08e3d316f559575ecbc84c17a5 Allow make a cylinder even if the world position is not on grid diff -r 23b47902d857 -r aab8e139a149 src/layers/edittools.cpp --- a/src/layers/edittools.cpp Sat Jul 02 19:03:57 2022 +0300 +++ b/src/layers/edittools.cpp Sat Jul 02 19:05:05 2022 +0300 @@ -401,11 +401,11 @@ } break; case CircleMode: - if (event->button() == Qt::LeftButton and this->worldPosition.has_value()) { + if (event->button() == Qt::LeftButton) { if (this->polygon.size() == 3) { this->closeShape(); } - else { + else if (this->worldPosition.has_value()) { this->polygon.push_back(*this->worldPosition); } }