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:
authorMatt Ebb <matt@mke3.net>2009-12-17 07:55:15 +0300
committerMatt Ebb <matt@mke3.net>2009-12-17 07:55:15 +0300
commitfac65a3f4d1645fb59ed0b023247535b4b1d6d77 (patch)
treee51a5957876cd1a8fcc7fddf9037b481c764af75 /source/blender/blenkernel/intern
parentfd18f555103efe8ac148ab763965d5595632da3d (diff)
Durian request:
Extend the 'only selected' property in the graph editor to only show curves from selected sequence strips and nodes as well.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r--source/blender/blenkernel/intern/node.c11
-rw-r--r--source/blender/blenkernel/intern/sequencer.c15
2 files changed, 26 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/node.c b/source/blender/blenkernel/intern/node.c
index a27c3b6494b..84ef4fb6d1c 100644
--- a/source/blender/blenkernel/intern/node.c
+++ b/source/blender/blenkernel/intern/node.c
@@ -767,6 +767,17 @@ void nodeGroupSocketUseFlags(bNodeTree *ngroup)
}
}
+/* finds a node based on its name */
+bNode *nodeFindNodebyName(bNodeTree *ntree, const char *name)
+{
+ bNode *node=NULL;
+
+ for(node= ntree->nodes.first; node; node= node->next) {
+ if (strcmp(name, node->name) == 0)
+ break;
+ }
+ return node;
+}
/* finds a node based on given socket */
int nodeFindNode(bNodeTree *ntree, bNodeSocket *sock, bNode **nodep, int *sockindex)
diff --git a/source/blender/blenkernel/intern/sequencer.c b/source/blender/blenkernel/intern/sequencer.c
index a7b9cf7f74c..e36e8dc49c4 100644
--- a/source/blender/blenkernel/intern/sequencer.c
+++ b/source/blender/blenkernel/intern/sequencer.c
@@ -3575,6 +3575,21 @@ void seq_offset_animdata(Scene *scene, Sequence *seq, int ofs)
}
+Sequence *get_seq_by_name(Scene *scene, const char *name)
+{
+ Sequence *seq=NULL;
+ Editing *ed= seq_give_editing(scene, FALSE);
+
+ if(ed==NULL) return NULL;
+
+ for (seq=ed->seqbase.first; seq; seq=seq->next) {
+ if (strcmp(name, seq->name+2) == 0)
+ break;
+ }
+ return seq;
+}
+
+
Sequence *active_seq_get(Scene *scene)
{
Editing *ed= seq_give_editing(scene, FALSE);