Many of my draw tools for the foundation and truss plugin are very similar. The user picks a number of points which then form the outline of the roof, slab or foundation outline.
Overall my draw tools seem to work as expected. When the user aligns the next segment with the X or Y axis the preview line turns red or green and allows the user to verify this segment is properly aligned (orthogonal).
The problem seems to arise when the user enters (manual text input) a length for the segment (which I allow). The resulting segment length is correctly draw as expected and in the correct direction however when the user goes to draw the next segment the inferencing to the X or Y axis is completely absent.
However, if the user then clicks the next point the following segment is then able to inference the axis again. For some reason text input messes up the inferencing to the X and Y axis. This is probably something simple to fix in my code but I’m at a loss as to how or where or why it is even doing this.
If you need my code to figure out what I’m doing wrong I would prefer to send it via a PM since it is a fairly significant draw tool and I would rather not post it publicly.