inochi-creator icon indicating copy to clipboard operation
inochi-creator copied to clipboard

[BUG] Mesh editor mirror vertices move the wrong direction when ctrl+dragging

Open HigasaMitsue opened this issue 3 years ago • 1 comments

Validations

  • [X] I have checked for similar bug reports and could not find any.
  • [X] I have tested and confirmed that this is an issue in an official branded build.

Describe the bug

When placing a vertex by holding Ctrl and dragging, the vertex moves the wrong direction.

  1. When horizontal mirror is enabled, the vertex x-offset is inverted.
  2. When vertical mirror is enabled, the vertex y-offset is inverted.
  3. When both are enabled, the vertex x-offset is inverted, but the y-offset is correct.

Reproduction

  1. Import any texture
  2. Right click > Edit Mesh
  3. Enable any mirror in the mesh editor
  4. Hold Ctrl and drag the vertex around

System Architecture

x86_64

Operating System

Windows

Version

2dc4fd2

Logs

No response

Additional Context

out

HigasaMitsue avatar Oct 17 '22 05:10 HigasaMitsue

Note to self: this is caused by the mirror selecting the wrong vertex to move, as such the movement is mirrored

LunaTheFoxgirl avatar Oct 17 '22 14:10 LunaTheFoxgirl

Fixed by https://github.com/Inochi2D/inochi-creator/commit/7941b12a362690405ac123beb8950e37db9348ae

LunaTheFoxgirl avatar Oct 19 '22 18:10 LunaTheFoxgirl