From 6da23db5e0def6909797374a0689afa2b3f8d96f Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Thu, 16 Dec 2021 13:03:39 +0100 Subject: UI: deduplicate code for Copy To Selected and Alt-button tweaking This resolves an old TODO to deduplicate code in copy_to_selected_button & ui_selectcontext_begin. This is also in hindsight of adding id-property support [incl. Geometry Nodes modifier properties] for this in the next commit. No behavior change expected here. ref T93983 & D13573 --- source/blender/editors/include/UI_interface.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/blender/editors/include/UI_interface.h') diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index ba83b259267..9df5b17975a 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -3007,6 +3007,13 @@ bool UI_context_copy_to_selected_list(struct bContext *C, struct ListBase *r_lb, bool *r_use_path_from_id, char **r_path); +bool UI_context_copy_to_selected_check(struct PointerRNA *ptr, + struct PointerRNA *ptr_link, + struct PropertyRNA *prop, + const char *path, + bool use_path_from_id, + struct PointerRNA *r_ptr, + struct PropertyRNA **r_prop); /* Helpers for Operators */ uiBut *UI_context_active_but_get(const struct bContext *C); -- cgit v1.2.3