Add parent ID parameter to node creation functions in Rust and C++
This commit is contained in:
@@ -160,7 +160,8 @@ StardustBridge::NodeId StardustBridge::createNode(const std::string& name,
|
||||
float m[16];
|
||||
// GLM mat4 is column-major; pass as 16 floats as-is
|
||||
std::memcpy(m, &transform[0][0], sizeof(m));
|
||||
std::uint64_t rid = m_fnCreateNode(name.c_str(), m);
|
||||
std::uint64_t parentVal = parent.has_value() ? *parent : 0;
|
||||
std::uint64_t rid = m_fnCreateNode(name.c_str(), m, parentVal);
|
||||
(void)rid; // Could map to NodeId if Rust returns its own id
|
||||
}
|
||||
return id;
|
||||
|
||||
Reference in New Issue
Block a user