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>2010-06-06 01:19:59 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-06-06 01:19:59 +0400
commit4da179749eb8d6b53f5c2eba4b3e4132656c3d4f (patch)
tree59b4dbfac1c894687f022efb72a9c010c93e555f /source/blender/editors/space_sequencer/sequencer_add.c
parentc12068920391c006cf5e72c1fafb4ebf8f807a55 (diff)
- [#22492] [29159] commit breaks importing of script file that has a reload to self in it
broke when including the blend path in the modules filename. - new function BLI_path_basename(), matches pythons os.path.basename(). replace a number of cases where BLI_split_dirfile was being used to get the filename only.
Diffstat (limited to 'source/blender/editors/space_sequencer/sequencer_add.c')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_add.c b/source/blender/editors/space_sequencer/sequencer_add.c
index c1b30ab155a..f36461ab7e0 100644
--- a/source/blender/editors/space_sequencer/sequencer_add.c
+++ b/source/blender/editors/space_sequencer/sequencer_add.c
@@ -421,7 +421,7 @@ static int sequencer_add_image_strip_exec(bContext *C, wmOperator *op)
RNA_END;
}
else {
- BLI_split_dirfile(seq_load.path, NULL, se->name);
+ BLI_strncpy(se->name, BLI_path_basename(seq_load.path), sizeof(se->name));
if(seq_load.start_frame < seq_load.end_frame) {
seq->endstill= seq_load.end_frame - seq_load.start_frame;
}