Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2022-06-14 18:03:27 +0300
committerJulian Eisel <julian@blender.org>2022-06-14 18:07:40 +0300
commitb690f4c2e6d02af522cebadb71318e14299dc362 (patch)
treef09fd94f7b95f40fdd5d64f0ced9b832f0dd7cf9 /source/blender/windowmanager/WM_api.h
parent06780aa4e6e04b10e1bf6be6850d6ad02f0c80af (diff)
Fix T98875: Adding camera background image shows error
Don't show an error if no operator property is set at all that can be used to find an image file or ID for dropping. The caller can decide if this is an error that needs reporting or a valid case, like it is here.
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r--source/blender/windowmanager/WM_api.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h
index ac06ababfd4..60cded3b869 100644
--- a/source/blender/windowmanager/WM_api.h
+++ b/source/blender/windowmanager/WM_api.h
@@ -738,6 +738,7 @@ void WM_operator_last_properties_ensure(struct wmOperatorType *ot, struct Pointe
wmOperator *WM_operator_last_redo(const struct bContext *C);
/**
* Use for drag & drop a path or name with operators invoke() function.
+ * Returns null if no operator property is set to identify the file or ID to use.
*/
ID *WM_operator_drop_load_path(struct bContext *C, struct wmOperator *op, short idcode);