diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-03-07 12:23:57 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-03-07 12:23:57 +0300 |
commit | b237dc3af5543e471f8c291d494f45b5196dd580 (patch) | |
tree | 9f7b5b62a1c354b4f2bfd6a4b1e6334979d5f1f9 /source | |
parent | 3ad1bfa69e8cbffc0c60c322c1e084840aa6aaa6 (diff) |
image editor user preference.
image.py has a function image_editor_guess(), please test on windows and mac. (using 'startfile' and 'open')
this is only used when the image editor is not set.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesdna/DNA_userdef_types.h | 1 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h index 8a41c2da071..24d7837b6ed 100644 --- a/source/blender/makesdna/DNA_userdef_types.h +++ b/source/blender/makesdna/DNA_userdef_types.h @@ -297,6 +297,7 @@ typedef struct UserDef { char plugseqdir[160]; char pythondir[160]; char sounddir[160]; + char image_editor[240]; // FILE_MAX length char anim_player[240]; // FILE_MAX length int anim_player_preset; diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index 0e8dae480a3..2b4a8aad255 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -2624,6 +2624,10 @@ static void rna_def_userdef_filepaths(BlenderRNA *brna) prop= RNA_def_property(srna, "temporary_directory", PROP_STRING, PROP_DIRPATH); RNA_def_property_string_sdna(prop, NULL, "tempdir"); RNA_def_property_ui_text(prop, "Temporary Directory", "The directory for storing temporary save files"); + + prop= RNA_def_property(srna, "image_editor", PROP_STRING, PROP_DIRPATH); + RNA_def_property_string_sdna(prop, NULL, "image_editor"); + RNA_def_property_ui_text(prop, "Image Editor", "Path to an image editor"); prop= RNA_def_property(srna, "animation_player", PROP_STRING, PROP_DIRPATH); RNA_def_property_string_sdna(prop, NULL, "anim_player"); |