Bugfix #25212
authorTon Roosendaal <ton@blender.org>
Tue, 14 Dec 2010 16:23:15 +0000 (16:23 +0000)
committerTon Roosendaal <ton@blender.org>
Tue, 14 Dec 2010 16:23:15 +0000 (16:23 +0000)
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.

source/blender/editors/space_buttons/buttons_ops.c

index a461fdcd9c6b1e625c46fb3eeb8799d96fe8078c..abb2f68980306ac2e8f90b4e31110512eafd286d 100644 (file)
@@ -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);