diff --git a/CHANGELOG.md b/CHANGELOG.md index eac8dfd1..c54f13de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ The **"Breaking Changes"** listed below are changes that have been made in the d - Metatile ID strings are now padded to their current max, not the overall max. ### Fixed +- Fix the metatile selector rectangle jumping when selecting up or left of the origin. - Fix the event group tabs sometimes showing an event from the wrong group - Fix API error reporting diff --git a/src/ui/metatileselector.cpp b/src/ui/metatileselector.cpp index 3ce9cf55..d72bb25d 100644 --- a/src/ui/metatileselector.cpp +++ b/src/ui/metatileselector.cpp @@ -4,7 +4,9 @@ #include QPoint MetatileSelector::getSelectionDimensions() { - return selection.dimensions; + if (this->prefabSelection || this->externalSelection) + return selection.dimensions; + return SelectablePixmapItem::getSelectionDimensions(); } void MetatileSelector::draw() { @@ -155,7 +157,7 @@ void MetatileSelector::updateSelectedMetatiles() { this->selection.metatileItems.clear(); this->selection.collisionItems.clear(); this->selection.hasCollision = false; - this->selection.dimensions = SelectablePixmapItem::getSelectionDimensions(); + this->selection.dimensions = this->getSelectionDimensions(); QPoint origin = this->getSelectionStart(); for (int j = 0; j < this->selection.dimensions.y(); j++) { for (int i = 0; i < this->selection.dimensions.x(); i++) {