Update Node Editor info (drawn on the bottom left) on redraw if needed
bNodeLinkDrag *nldrag;
LinkData *linkdata;
+ BLI_assert(snode->id != NULL);
+
path = snode->treepath.last;
+ /* update tree path name (drawn in the bottom left) */
+ if (UNLIKELY(!STREQ(path->node_name, snode->id->name + 2))) {
+ BLI_strncpy(path->node_name, snode->id->name + 2, sizeof(path->node_name));
+ }
+
/* current View2D center, will be set temporarily for parent node trees */
UI_view2d_center_get(v2d, ¢er[0], ¢er[1]);
bNodeInstanceKey parent_key; /* base key for nodes in this tree instance */
int pad;
float view_center[2]; /* v2d center point, so node trees can have different offsets in editors */
- /* XXX this is not automatically updated when node names are changed! */
+
char node_name[64]; /* MAX_NAME */
} bNodeTreePath;