2.5: File browser
[blender.git] / source / blender / editors / curve / editfont.c
index 9f2bd6f26f9ca4f3e9ff162c6ef0f7cf167bc155..46be95063ec1090b02fc88c9d79ec9c5abf2329b 100644 (file)
@@ -416,7 +416,7 @@ void FONT_OT_file_paste(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       RNA_def_string_file_path(ot->srna, "filename", "", 0, "Filename", "File path of text file to load.");
+       WM_operator_properties_filesel(ot, FOLDERFILE|TEXTFILE);
 }
 
 /******************* paste buffer operator ********************/