diff options
author | Campbell Barton <campbell@blender.org> | 2022-06-27 14:32:13 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-06-27 14:35:32 +0300 |
commit | 6a2c42a0d58e0f36cca1cf4ca0c5c98ec3612f6f (patch) | |
tree | 8a08d40f5830a7274855b7f8d4e61cb85e1d31ea | |
parent | 2b806cb9558f174fb4b2fa7254ca2e9e113bfd17 (diff) |
Cleanup: remove redundant RNA_struct_property_is_set check
This dates back to [0] from before PROP_SKIP_SAVE existed.
While harmless it's confusing why only one option uses this check.
[0]: ff83a98a07c3d55eac03ebd903ad7a0c3e6c33b4
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index a170fa9902b..5f4c39e33f7 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -3063,8 +3063,7 @@ static int wm_save_as_mainfile_exec(bContext *C, wmOperator *op) Main *bmain = CTX_data_main(C); char path[FILE_MAX]; const bool is_save_as = (op->type->invoke == wm_save_as_mainfile_invoke); - const bool use_save_as_copy = (RNA_struct_property_is_set(op->ptr, "copy") && - RNA_boolean_get(op->ptr, "copy")); + const bool use_save_as_copy = RNA_boolean_get(op->ptr, "copy"); /* We could expose all options to the users however in most cases remapping * existing relative paths is a good default. |