fix: add warning for null function pointer in setNodeColor

This commit is contained in:
MayaTheShy
2025-11-08 20:50:22 -05:00
parent 16f7a83d4d
commit d42e15e9f6

View File

@@ -200,6 +200,8 @@ bool StardustBridge::setNodeColor(NodeId id, const glm::vec3& color, float alpha
if (it == m_nodes.end()) return false;
if (m_fnSetColor) {
return m_fnSetColor(id, color.r, color.g, color.b, alpha) == 0;
} else {
std::cerr << "[StardustBridge] Warning: setNodeColor called but m_fnSetColor is null" << std::endl;
}
return true;
}