hlorus / CAD_Sketcher

Constraint-based geometry sketcher for blender
GNU General Public License v3.0
2.73k stars 131 forks source link

[BUG] Sketcher tools in the default toolbar do nothing in object mode #477

Open dimitarsp opened 2 months ago

dimitarsp commented 2 months ago

Contact Details

No response

Description

Hi, first of I love the idea of CAD sketcher in Blender!! Combining the best of both worlds CAD and Mesh modeling - excellent for architecture.

OK, now to the slight issue that I am noticing. The CADSketcher tools appear in the toolbar whether a sketch is enabled or not (in object mode). However, when clicking on any of the icons like polyline tool, nothing happens. It would be ideal of these tools are only visible when editing a sketch.

I think I get why they are needed. Editing a sketch is still done in Object Mode instead of its own Edit mode.

Addon Version

0.27.5

Blender Version

2.42.1

What platform are you running on?

Windows

hlorus commented 2 months ago

Unfortunately blender's API doesn't allow for custom edit modes. A possible alternative could be to have a dedicated workspace where the addon is enabled and have the addon disabled in other workspaces. But i'm not sure how this could be set up automatically.