Only editable objects initiate editing state when using edit tool

This commit is contained in:
Yousef Khadadeh 2025-09-29 11:45:46 +03:00
parent 56b3c27401
commit 762016be4c
2 changed files with 9 additions and 12 deletions

View file

@ -27,6 +27,7 @@ class EditTool : public DrawingProgramToolBase {
void add_point_handle(const HandleData& handle);
void edit_start(const std::shared_ptr<DrawComponent>& comp);
bool is_editable(const std::shared_ptr<DrawComponent>& comp);
struct EditControls {
std::unique_ptr<DrawingProgramEditToolBase> compEditTool;