Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjulianeisel <julian_eisel@web.de>2015-01-25 03:59:49 +0300
committerjulianeisel <julian_eisel@web.de>2015-01-25 03:59:49 +0300
commit492b9ab5e3d8b4e1c425bfae5494c998853107ea (patch)
treeeece6b66bfd7670375c4fd464d8f93eb6fe5627c /source/blender/editors/space_node/node_draw.c
parentc2af749ac3d545edeaba5b2f6bad33ac803bb36c (diff)
Fix T43335: Node Editor: name doesn't update
Update Node Editor info (drawn on the bottom left) on redraw if needed
Diffstat (limited to 'source/blender/editors/space_node/node_draw.c')
-rw-r--r--source/blender/editors/space_node/node_draw.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c
index 16ad63bcafa..0de231ba7cc 100644
--- a/source/blender/editors/space_node/node_draw.c
+++ b/source/blender/editors/space_node/node_draw.c
@@ -1302,8 +1302,15 @@ void drawnodespace(const bContext *C, ARegion *ar)
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, &center[0], &center[1]);