diff options
author | Matt Ebb <matt@mke3.net> | 2009-11-11 12:11:21 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2009-11-11 12:11:21 +0300 |
commit | c0fae59c99fdcb802b055c81d51ece6cf9ce5518 (patch) | |
tree | e6bb9f3a302e3e222a4fc84b2c1ca746946a9199 /source/blender/editors/space_graph/space_graph.c | |
parent | b2bb9ca39a687efc5dd1014e78650e39452d7cbf (diff) |
* Fixed nodetree animation by giving nodes unique names
Now the rna path to nodes happens via the node name, which is ensured to be unique via RNA.
As part of this, the node->username string has been removed, upon renaming the node itself it takes care of making sure it's unique (like bones, constraints, etc). There's currently no interactive rename tool, but you can do it via the datablocks editor.
- plus a few notifier tweaks, using the newer NC_NODE notifier to refresh graph editor etc.
Diffstat (limited to 'source/blender/editors/space_graph/space_graph.c')
-rw-r--r-- | source/blender/editors/space_graph/space_graph.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/space_graph/space_graph.c b/source/blender/editors/space_graph/space_graph.c index f076bb5549e..157202190bb 100644 --- a/source/blender/editors/space_graph/space_graph.c +++ b/source/blender/editors/space_graph/space_graph.c @@ -417,6 +417,13 @@ static void graph_region_listener(ARegion *ar, wmNotifier *wmn) break; } break; + case NC_NODE: + switch(wmn->action) { + case NA_EDITED: + ED_region_tag_redraw(ar); + break; + } + break; default: if(wmn->data==ND_KEYS) ED_region_tag_redraw(ar); |