DrawPolygon bug?


#1

Everytime the DrawPolygon block is executed, it clears the canvas.
In other words, if you draw something with the other blocks and you execute the DrawPolygon block, the canvas gets erased and only the polygon shows.

I think that shouldn’t happen. Was it designed like that?


#2

Checking…


#3

@Italo See example below, it’s not clearing canvas:


#4

Here is the .aia that was used for blog:
CanvasAndPoly.aia (65.7 KB)


#5

This is how the blocks look when i open the aia. Don’t know what happened.


#6

Maybe I uploaded the wrong one :slight_smile: Checking


#7

Thanks for catching the @Peter I uploaded correct version and fixed the link


#8

mmmmmmmmmmmm, this one isn’t complete either. No polygon blocks and an empty socket.


#9

:smile: Thanks for catching it AGAIN :slight_smile: Fixed, updated url


#10

Now it works. I can see what @Italo means. If i draw a circle on the canvas.

image say like this with a do it and then use the slider to changes the number of sides the canvas is cleared before the polygon is drawn.

image


#11

Yes, that is because it has to basically redraw the canvas.
I can check with devs to see if there is workaround


#12

Thanks. I knew it was too good to be true. JK :grin: