Skip to content

(ui): TF editor suppresses points

Romain MANCIAUX requested to merge 590-graphics-tf-editor-suppresses-points into dev

Description

To move a TF point with our editor, we delete it, and insert a new one at it's new position. When a point of a TF is moved, the x position of the point is clamped between the previous and the next one. But the clamping was inclusive, so the position of the point could be the same as the previous or the next one. So when the point was inserted in the TF's point map once moved, we deleted and replaced a point (the previous or next one) that has to be kept.

Closes #590 (closed)

How to test it?

  • Launch OgreViewer.
  • Load an image.
  • Open the TF editor.
  • Move a point on another one, check that the point isn't deleted (watch the issue to understand the bug).
Edited by Romain MANCIAUX

Merge request reports