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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user