diff --git a/example/Gizmo/GizmoTest.cpp b/example/Gizmo/GizmoTest.cpp index 730184b5..cb650dc1 100644 --- a/example/Gizmo/GizmoTest.cpp +++ b/example/Gizmo/GizmoTest.cpp @@ -149,8 +149,8 @@ public: // root.SetLocalTransform(tm); //} - //root.RefreshMatrix(); - //render_list->UpdateLocalToWorld(); + root.RefreshMatrix(); + render_list->UpdateLocalToWorld(); SceneAppFramework::BuildCommandBuffer(index); } diff --git a/inc/hgl/graph/SceneOrient.h b/inc/hgl/graph/SceneOrient.h index b9e4fed5..48271dc5 100644 --- a/inc/hgl/graph/SceneOrient.h +++ b/inc/hgl/graph/SceneOrient.h @@ -80,7 +80,8 @@ namespace hgl void SetLocalMatrix(const Matrix4f &mat) { - if (IsNearlyEqual(local_matrix,mat)) + //if (IsNearlyEqual(local_matrix,mat)) + if(!hgl_cmp(local_matrix,mat)) return; local_matrix=mat; @@ -89,7 +90,8 @@ namespace hgl void SetParentMatrix(const Matrix4f &pm) { - if (IsNearlyEqual(parent_matrix,pm)) + //if (IsNearlyEqual(parent_matrix,pm)) + if(!hgl_cmp(parent_matrix,pm)) return; parent_matrix=pm; @@ -101,7 +103,7 @@ namespace hgl * 方向定位数据基类
* 用于描述一个物体在3D空间中的位置、旋转、缩放等信息。
* 构成说明:
- *