Fix #116144: Tag update relations for Active Camera node

Missed part of 75f160ee96

Pull Request: https://projects.blender.org/blender/blender/pulls/116152
This commit is contained in:
Iliya Katueshenock
2023-12-13 16:24:25 +01:00
committed by Hans Goudey
parent 96dff1d3ce
commit 51bb3247b4

View File

@@ -2432,7 +2432,11 @@ bNode *nodeAddNode(const bContext *C, bNodeTree *ntree, const char *idname)
BKE_ntree_update_tag_node_new(ntree, node);
if (ELEM(node->type, GEO_NODE_INPUT_SCENE_TIME, GEO_NODE_SELF_OBJECT, GEO_NODE_SIMULATION_INPUT))
if (ELEM(node->type,
GEO_NODE_INPUT_SCENE_TIME,
GEO_NODE_INPUT_ACTIVE_CAMERA,
GEO_NODE_SELF_OBJECT,
GEO_NODE_SIMULATION_INPUT))
{
DEG_relations_tag_update(CTX_data_main(C));
}