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:
authorWayde Moss <wbmoss_dev@yahoo.com>2021-01-13 08:52:31 +0300
committerWayde Moss <wbmoss_dev@yahoo.com>2021-01-13 08:52:31 +0300
commit5065c0e6d5bc490e030ac9f1b0a62c33f32d316a (patch)
tree7a7cbc10d41d17e9952024f446a27f01bbda2256
parent8bc2b9468a224410ca2dfc4d2eaffffd517df8e5 (diff)
- apply changes to dependency patch
-rw-r--r--source/blender/editors/space_nla/nla_edit.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/editors/space_nla/nla_edit.c b/source/blender/editors/space_nla/nla_edit.c
index 9e02d430d98..b4f24458d7e 100644
--- a/source/blender/editors/space_nla/nla_edit.c
+++ b/source/blender/editors/space_nla/nla_edit.c
@@ -1124,12 +1124,7 @@ static int nlaedit_duplicate_exec(bContext *C, wmOperator *op)
/* in case there's no space in the track above,
* or we haven't got a reference to it yet, try adding */
if (!BKE_nlatrack_try_add_strip(nlt->next, nstrip, is_liboverride)) {
- /* need to add a new track above the one above the current one
- * - if the current one is the last one, nlt->next will be NULL, which defaults to adding
- * at the top of the stack anyway...
- */
- track = BKE_nlatrack_new_after_and_set_active(
- &adt->nla_tracks, nlt->next, is_liboverride);
+ track = BKE_nlatrack_new_after_and_set_active(&adt->nla_tracks, nlt, is_liboverride);
BKE_nlatrack_add_strip(track, nstrip);
}