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:
authorCampbell Barton <ideasman42@gmail.com>2014-04-30 01:48:54 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-30 02:11:47 +0400
commit48446870a8981c28ee4c695823d12fb4419e56eb (patch)
treea9b80b92be135af86d451b60a6b55a4e33bf0fb0 /source/blender/editors/object/object_add.c
parentcdaff060265ef81539d04f6ad1f16762dbbba288 (diff)
Code cleanup: remove redundant CTX calls
Diffstat (limited to 'source/blender/editors/object/object_add.c')
-rw-r--r--source/blender/editors/object/object_add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c
index da989ba4f21..cfd3469898f 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -1028,7 +1028,7 @@ static int object_speaker_add_exec(bContext *C, wmOperator *op)
/* create new data for NLA hierarchy */
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);
+ NlaStrip *strip = add_nla_soundstrip(scene, ob->data);
strip->start = CFRA;
strip->end += strip->start;