CreateComponentInfo::parent_node改名为owner_node

This commit is contained in:
2025-07-27 13:26:43 +08:00
parent a165227292
commit a27150c9d2
2 changed files with 9 additions and 9 deletions

View File

@@ -245,8 +245,8 @@ public: //Component 相关
*/
if(cci)
{
if(cci->parent_node)
cci->parent_node->AttachComponent(c); //将组件附加到节点
if(cci->owner_node)
cci->owner_node->AttachComponent(c); //将组件附加到所属节点
c->graph::SceneOrient::SetLocalMatrix(cci->mat);
}