fix: add warning for null function pointer in setNodeColor

This commit is contained in:
MayaTheShy
2025-11-08 20:50:22 -05:00
parent 7e4c4152d4
commit 1bf8099aea

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;
}