[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33663] trunk/blender/source/blender/ editors/space_buttons/buttons_ops.c: Bugfix #25212

Ton Roosendaal ton at blender.org
Tue Dec 14 17:23:15 CET 2010


Revision: 33663
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33663
Author:   ton
Date:     2010-12-14 17:23:15 +0100 (Tue, 14 Dec 2010)

Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_buttons/buttons_ops.c

Modified: trunk/blender/source/blender/editors/space_buttons/buttons_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_buttons/buttons_ops.c	2010-12-14 16:20:25 UTC (rev 33662)
+++ trunk/blender/source/blender/editors/space_buttons/buttons_ops.c	2010-12-14 16:23:15 UTC (rev 33663)
@@ -104,16 +104,20 @@
 
 	/* 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);





More information about the Bf-blender-cvs mailing list