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]: ff83a98a07
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user