Added standard constructor with just scene and name for KRModel and KRCollider.

Implemented KRNode::createNode, to create nodes declared in KrCreateNodeInfo structs.
Added stub function, KRNode::update to update node attributes from a KrNodeInfo struct.
This commit is contained in:
2022-09-22 23:02:42 -07:00
parent ec65e788e0
commit ad81d58ea8
7 changed files with 99 additions and 6 deletions

View File

@@ -793,7 +793,7 @@ KrResult KRContext::createNode(const KrCreateNodeInfo* pCreateNodeInfo)
}
KRNode* newNode = nullptr;
KrResult res = KRNode::createNode(pCreateNodeInfo, &newNode);
KrResult res = KRNode::createNode(pCreateNodeInfo, scene, &newNode);
if (res != KR_SUCCESS) {
return res;
}