10-12-2022, 09:11 PM
(This post was last modified: 10-12-2022, 09:13 PM by BugsBunnySan.)
(10-12-2022, 04:46 PM)programmer_ceds Wrote: @teapot
You are correct - it is a problem with the script. Yesterday I thought I saw an offset of 40,40 both when the arrow was being drawn directly on the drawable and when it was being drawn on a new layer. Rechecking today I'm seeing an offset of 0,0 when the arrow is being drawn on to a new layer. The easiest course of action is still to always draw the arrow on a new layer and then to merge this down to the original layer if the user deselects the option to draw the arrow on a new layer (this avoids having to apply the offset to a number of points. I have modified the comments in the script slightly and uploaded the revised code. Hopefully no more problems now.
Hm, I tried the script just now and now the arrowhead appears in the correct location, but in return, the layer that it is drawn onto is resized to the full image size. Probably because the new intermediate layer for the arrow is the full image size by default on creating it and merging it down onto the layer the arrow should be in makes that layer full sized also... Maybe if the intermediate layer that the arrow is drawn on and then merged down where the same size and location in the image as the layer the arrow should be in?