Tue, 27 Jul 2021 16:29:00 +0300
Add vertex rendering
#include "selecttool.h" SelectTool::SelectTool(QObject* parent) : BaseTool{parent} {} QString SelectTool::name() const { static const QString result = tr("Select"); return result; } QString SelectTool::toolTip() const { static const QString result = tr("Select elements from the model."); return result; } bool SelectTool::mouseClick(Document* document, Canvas* canvas) { static_cast<void>(document); const ldraw::id_t highlighted = canvas->getHighlightedObject(); canvas->clearSelection(); if (highlighted != ldraw::NULL_ID) { canvas->addToSelection(highlighted); } return true; }