visual tools: Fix grid in RotateXY tool
Fix the grid scaling when the video is not at 100% zoom, and scale the grid with \fscx / \fscy .
This commit is contained in:
parent
ddfd4501f0
commit
4c2b47d5de
1 changed files with 3 additions and 0 deletions
|
@ -49,7 +49,9 @@ void VisualToolRotateXY::Draw() {
|
|||
|
||||
// Transform grid
|
||||
gl.SetOrigin(org->pos);
|
||||
gl.SetScale(100 * video_res / script_res);
|
||||
gl.SetRotation(angle_x, angle_y, angle_z);
|
||||
gl.SetScale(fsc);
|
||||
gl.SetShear(fax, fay);
|
||||
|
||||
// Draw grid
|
||||
|
@ -197,4 +199,5 @@ void VisualToolRotateXY::DoRefresh() {
|
|||
|
||||
GetLineRotation(active_line, angle_x, angle_y, angle_z);
|
||||
GetLineShear(active_line, fax, fay);
|
||||
GetLineScale(active_line, fsc);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue