From 7dc4bb9d76d479771cfde046ccf74ecf92afe4eb Mon Sep 17 00:00:00 2001 From: hyzboy Date: Thu, 29 Aug 2024 13:46:19 +0800 Subject: [PATCH] [BUG FIXED] Fix Bug that to use matrix2f storage local to world matrix. --- src/SceneGraph/SceneNode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SceneGraph/SceneNode.cpp b/src/SceneGraph/SceneNode.cpp index eeb7d46a..d0cc0bfe 100644 --- a/src/SceneGraph/SceneNode.cpp +++ b/src/SceneGraph/SceneNode.cpp @@ -47,7 +47,7 @@ namespace hgl // if (scene_matrix.IsNewestVersion()) //自己不变,不代表下面不变 //return; - const Matrix2f &l2w=scene_matrix.GetLocalToWorldMatrix(); + const Matrix4f &l2w=scene_matrix.GetLocalToWorldMatrix(); const int count=SubNode.GetCount();