--- a/src/document.cpp Sun Aug 29 21:28:08 2021 +0300 +++ b/src/document.cpp Sun Aug 29 22:14:42 2021 +0300 @@ -25,10 +25,12 @@ #include "tools/basetool.h" #include "tools/drawtool.h" #include "tools/selecttool.h" +#include "tools/transformtool.h" static const QMetaObject* const toolMetaObjects[] = { &SelectTool::staticMetaObject, &DrawTool::staticMetaObject, + &TransformTool::staticMetaObject, }; Document::Document( @@ -148,9 +150,9 @@ void Document::selectionChanged(const QSet<ldraw::id_t>& newSelection) { - if (this->selectedTool != nullptr) + for (BaseTool* tool : this->tools) { - this->selectedTool->selectionChanged(newSelection); + tool->selectionChanged(newSelection); } }