Cleanup: Use const parameters for node poll functions

This requires a const cast in RNA, but it really is wrong
to change the nodes and node trees in these callbacks.
This commit is contained in:
2022-12-28 20:15:41 -05:00
parent d7dad425c0
commit 8c6fe60844
17 changed files with 52 additions and 38 deletions

View File

@@ -5,8 +5,8 @@
#include "NOD_socket_search_link.hh"
static bool fn_node_poll_default(bNodeType * /*ntype*/,
bNodeTree *ntree,
static bool fn_node_poll_default(const bNodeType * /*ntype*/,
const bNodeTree *ntree,
const char **r_disabled_hint)
{
/* Function nodes are only supported in simulation node trees so far. */