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:
authorJoerg Mueller <nexyon@gmail.com>2011-08-09 12:38:14 +0400
committerJoerg Mueller <nexyon@gmail.com>2011-08-09 12:38:14 +0400
commit13249b925eda7752b65a36d8270a3af3bdc02981 (patch)
tree7fd483e84f29e09bbc4cd2c6e226fc7cf7a6f722 /source/blender/editors/object/object_add.c
parent802f69df78a937cd94d855264c658212e3467c2a (diff)
3D Audio GSoC:
Speaker objects fully functional! Minor changes: * Fixed three memory bugs found via valgrind. * Fixed bug with jack transport crashing after file loading. * Sound NLA Strips now start at CFRA instead of 0.
Diffstat (limited to 'source/blender/editors/object/object_add.c')
-rw-r--r--source/blender/editors/object/object_add.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c
index 97d109118d1..09ce2562e3b 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -774,6 +774,7 @@ static int object_speaker_add_exec(bContext *C, wmOperator *op)
int enter_editmode;
unsigned int layer;
float loc[3], rot[3];
+ Scene *scene = CTX_data_scene(C);
object_add_generic_invoke_options(C, op);
if(!ED_object_add_generic_get_opts(C, op, loc, rot, &enter_editmode, &layer))
@@ -789,6 +790,8 @@ static int object_speaker_add_exec(bContext *C, wmOperator *op)
AnimData *adt = BKE_id_add_animdata(&ob->id);
NlaTrack *nlt = add_nlatrack(adt, NULL);
NlaStrip *strip = add_nla_soundstrip(CTX_data_scene(C), ob->data);
+ strip->start = CFRA;
+ strip->end += strip->start;
/* hook them up */
BKE_nlatrack_add_strip(nlt, strip);