diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2014-02-17 20:13:36 +0400 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2014-02-17 20:17:10 +0400 |
commit | 266e1b3b4f67ba320af16f4a1f806e49c3f9de25 (patch) | |
tree | 8682b667f542e35edcab54e38718686cd493c591 /source | |
parent | fc9215129e27d5fd96ee7159e2ff63570e4b16e8 (diff) |
Fix T38680: File output subpath file-select operator uses absolute path.
This is because the sub-paths of the individual sockets are defined as
FILEPATH properties, which automatically adds the standard fileselect
operator button in the uiLists. However, that operator returns full
paths only, with no direct way to make them relative to the base path.
So for now i've turned the subpath properties into regular strings,
which removes these operator buttons but should at least avoid the
confusion.
Eventually new operators could be defined for this, which use the file-
select operator and then make the path relative.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesrna/intern/rna_nodetree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index c00c93484d5..d893a8c21f9 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -4243,7 +4243,7 @@ static void rna_def_cmp_output_file_slot_file(BlenderRNA *brna) prop = RNA_def_property(srna, "format", PROP_POINTER, PROP_NONE); RNA_def_property_struct_type(prop, "ImageFormatSettings"); - prop = RNA_def_property(srna, "path", PROP_STRING, PROP_FILEPATH); + prop = RNA_def_property(srna, "path", PROP_STRING, PROP_NONE); RNA_def_property_string_sdna(prop, NULL, "path"); RNA_def_property_string_funcs(prop, NULL, NULL, "rna_NodeOutputFileSlotFile_path_set"); RNA_def_struct_name_property(srna, prop); |