diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-02-19 04:33:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-02-19 04:33:14 +0300 |
commit | 57218638052c72d1e25f3201c8356d11bd690834 (patch) | |
tree | 699ab201c859bcd28f9769e05f46e1b5da6754fb /source/blender/editors/space_file | |
parent | eee79641c362c974c40cbd289cf14685c6b86f92 (diff) |
RNA: pass only 0/1 to RNA_property_boolean_set
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r-- | source/blender/editors/space_file/filesel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/filesel.c b/source/blender/editors/space_file/filesel.c index 3206a0ff89b..14b72eb8f6d 100644 --- a/source/blender/editors/space_file/filesel.c +++ b/source/blender/editors/space_file/filesel.c @@ -231,7 +231,7 @@ short ED_fileselect_set_params(SpaceFile *sfile) if (is_relative_path) { if ((prop = RNA_struct_find_property(op->ptr, "relative_path"))) { if (!RNA_property_is_set_ex(op->ptr, prop, false)) { - RNA_property_boolean_set(op->ptr, prop, U.flag & USER_RELPATHS); + RNA_property_boolean_set(op->ptr, prop, (U.flag & USER_RELPATHS) != 0); } } } |