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:
authorTon Roosendaal <ton@blender.org>2010-12-14 19:23:15 +0300
committerTon Roosendaal <ton@blender.org>2010-12-14 19:23:15 +0300
commit2b537777454b402e997dc64559ca5e692675af81 (patch)
treef9b78fec696029d0ae26af1a449f4b81a575818e /source/blender/editors/space_buttons
parent4057626e55e3c1e78d6725c54160b059580f1dd1 (diff)
Bugfix #25212
Sequencer: Properties -> Panel "Strip Input" -> file browse button next to directory name assigned the full file name. Added on todo: unported code still for "Change Sequence", allowing to rebrowse strip contents.
Diffstat (limited to 'source/blender/editors/space_buttons')
-rw-r--r--source/blender/editors/space_buttons/buttons_ops.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/space_buttons/buttons_ops.c b/source/blender/editors/space_buttons/buttons_ops.c
index a461fdcd9c6..abb2f689803 100644
--- a/source/blender/editors/space_buttons/buttons_ops.c
+++ b/source/blender/editors/space_buttons/buttons_ops.c
@@ -104,16 +104,20 @@ static int file_browse_exec(bContext *C, wmOperator *op)
/* add slash for directories, important for some properties */
if(RNA_property_subtype(fbo->prop) == PROP_DIRPATH) {
+ char name[FILE_MAX];
+
id = fbo->ptr.id.data;
base = (id && id->lib)? id->lib->filepath: G.main->name;
BLI_strncpy(path, str, FILE_MAX);
BLI_path_abs(path, base);
-
+
if(BLI_is_dir(path)) {
str = MEM_reallocN(str, strlen(str)+2);
BLI_add_slash(str);
}
+ else
+ BLI_splitdirstring(str, name);
}
RNA_property_string_set(&fbo->ptr, fbo->prop, str);