Bug in primitive drawing plugin..!

if you draw line from x1,y1 to x2,y2 and y1=y2 then I draw line on canvas it’s thickness remain constant what so every thickness we apply. I remove the condition of y1==y2 from primitiveDrawingPlugin.js and every thing is fine now

Which file are you talking about? There is no such primitiveDrawingPlugin.js (only shapepainterruntimeobject.js), and no “y1 == y2” in the whole source code? :confused:

That’s was in previous version on the address (C:\Program Files (x86)\GDevelop\JsPlatform\Extensions\primitiveDrawingPlugin.js), Now it has been removed from current version.

HOW TO GET PRIMITIVE DRAWING PLUGIN OBJECT THROUGH JS

just like other objects we take them in variable and get their properties and method like this
var fakeObjects = runtimeScene.getObjects(“fake”);
fakeObjects[0].getX()
etc…

Like above I want to get object of primitiveDrawing and do things like drawCircle, DrawLine etc…