Jump to content

[SOLVED] Documentation: WidgetCanvas line point methods


photo

Recommended Posts

Posted

In Widgetcanvas::removeLinePoint() second parameter is described as vec3. This is not correct because it's point index (int)

In addition in WidgetCanvas::addLinePoint() returned value is expressed as

"ID number of the added line segment point"

, but it behaves like an index more than an ID. If you try to remove points in ascendant order the application crashes by assertion.

 

 

Regards,

Iván.

  • 2 weeks later...
Posted
In Widgetcanvas::removeLinePoint() second parameter is described as vec3. This is not correct because it's point index (int)

Fixed, thank you.

 

In addition in WidgetCanvas::addLinePoint() returned value is expressed as "ID number of the added line segment point" , but it behaves like an index more than an ID. If you try to remove points in ascendant order the application crashes by assertion.

You've got the point. After discussing it with our developers, I decided to go with:

  • Canvas element ID for lines, etc
  • Index number for points

×
×
  • Create New...