diff options
author | Julian Eisel <julian@blender.org> | 2022-05-24 15:22:59 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-05-24 16:21:38 +0300 |
commit | 463077a3d59df3de8a8fdc218c06c38116829f3e (patch) | |
tree | 5b95ac5f6c7bff7734672070af0b11e9e737e315 /source/blender/windowmanager/WM_api.h | |
parent | a40a26906213c2730c8b2efd9a509e18c7821e87 (diff) |
Fix possible lingering around of ID after asset dropping failed
More and more of the drop operations are being switched to use the ID's
session UUID rather than the name, but the cleanup after a drop operator
was cancelled assumed they would set the name. They will now first
attempt to use the session UUID and fallback to the name if needed.
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r-- | source/blender/windowmanager/WM_api.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index 48ade798364..b87fa896e69 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -786,7 +786,7 @@ void WM_operator_properties_id_lookup_set_from_id(PointerRNA *ptr, const ID *id) * helper to add the properties. */ struct ID *WM_operator_properties_id_lookup_from_name_or_session_uuid(struct Main *bmain, - const struct wmOperator *op, + PointerRNA *ptr, enum ID_Type type); /** * Adds "name" and "session_uuid" properties so the caller can tell the operator which ID to act |