TransformManager::Update函数改用UpdateNewestData探查子TRANSOFRM是否有更新

This commit is contained in:
2025-08-01 13:56:51 +08:00
parent 20ad0b9f99
commit c37a38362c

View File

@@ -1,4 +1,4 @@
#pragma once #pragma once
#include<hgl/type/TypeInfo.h> #include<hgl/type/TypeInfo.h>
#include<hgl/math/Matrix.h> #include<hgl/math/Matrix.h>
#include<hgl/type/ObjectList.h> #include<hgl/type/ObjectList.h>
@@ -633,7 +633,7 @@ namespace hgl
bool has_update=false; bool has_update=false;
for(TransformBase *tb:transform_list) for(TransformBase *tb:transform_list)
if(tb->Update()) if(tb->UpdateNewestData())
has_update=true; has_update=true;
if(has_update) if(has_update)