Fix #63890: Allow Eyedropper and Other Operations in Popovers

Allow some operations on contents of popovers, like resetting to
defaults and use of the eyedropper.

Pull Request: blender/blender#105387
This commit is contained in:
2023-03-11 00:36:39 +01:00
parent 4d5a3c9932
commit c402b3f52f
2 changed files with 3 additions and 12 deletions

View File

@@ -8781,7 +8781,7 @@ uiBut *UI_context_active_but_prop_get(const bContext *C,
PropertyRNA **r_prop,
int *r_index)
{
uiBut *activebut = ui_context_rna_button_active(C);
uiBut *activebut = UI_context_active_but_get_respect_menu(C);
if (activebut && activebut->rnapoin.data) {
*r_ptr = activebut->rnapoin;
@@ -8799,7 +8799,7 @@ uiBut *UI_context_active_but_prop_get(const bContext *C,
void UI_context_active_but_prop_handle(bContext *C, const bool handle_undo)
{
uiBut *activebut = ui_context_rna_button_active(C);
uiBut *activebut = UI_context_active_but_get_respect_menu(C);
if (activebut) {
/* TODO(@ideasman42): look into a better way to handle the button change
* currently this is mainly so reset defaults works for the