fixed vtk containerbox handler
This commit is contained in:
@@ -616,10 +616,11 @@ void vtkHandlerWidget::UpdateGizmoPosition() {
|
||||
mat_gizmo->SetElement(1, 3, center[1]);
|
||||
mat_gizmo->SetElement(2, 3, center[2]);
|
||||
} else if (m_Frame == GLOBAL) {
|
||||
::vtkMatrix4x4 *mat = this->Prop3D->GetMatrix();
|
||||
mat_gizmo->Identity();
|
||||
mat_gizmo->SetElement(0, 3, pos[0]);
|
||||
mat_gizmo->SetElement(1, 3, pos[1]);
|
||||
mat_gizmo->SetElement(2, 3, pos[2]);
|
||||
mat_gizmo->SetElement(0, 3, mat->GetElement(0, 3));
|
||||
mat_gizmo->SetElement(1, 3, mat->GetElement(1, 3));
|
||||
mat_gizmo->SetElement(2, 3, mat->GetElement(2, 3));
|
||||
} else if (m_Frame == CENTER) {
|
||||
mat_gizmo->Identity();
|
||||
mat_gizmo->SetElement(0, 3, center[0]);
|
||||
|
||||
Reference in New Issue
Block a user