Commit: b683a37824aa2fb22efe22a1dbce667b8155698f Author: Campbell Barton Date: Fri Jul 1 20:52:00 2022 +1000 Branches: master https://developer.blender.org/rBb683a37824aa2fb22efe22a1dbce667b8155698f
Fix T99301: RNA_boolean_get warning when saving a file for the first time Caused by [0], RNA_struct_property_is_set also functioned to check if the property existed. [0]: 6a2c42a0d58e0f36cca1cf4ca0c5c98ec3612f6f =================================================================== M source/blender/windowmanager/intern/wm_files.c =================================================================== diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index 5f4c39e33f7..a4d5bed21da 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -3063,7 +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_boolean_get(op->ptr, "copy"); + const bool use_save_as_copy = is_save_as && 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. _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs