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:
authorCampbell Barton <ideasman42@gmail.com>2019-07-30 03:57:47 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-07-30 03:57:47 +0300
commit369b574fd5ae9522133344ecddab4fff5ee50225 (patch)
tree1b165000c280bc0a4d11a0148e0424b63ef11fd3 /release/scripts/modules/bpy_types.py
parenta345f56ce3331a0f1e2436142ac11654626752fe (diff)
UI: add use_button option to popovers
This is useful when popovers are launched from operators instead of as button popover types. Where the connection between the button and the popover is useful to keep.
Diffstat (limited to 'release/scripts/modules/bpy_types.py')
-rw-r--r--release/scripts/modules/bpy_types.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py
index c407b441273..eca79795269 100644
--- a/release/scripts/modules/bpy_types.py
+++ b/release/scripts/modules/bpy_types.py
@@ -151,10 +151,12 @@ class WindowManager(bpy_types.ID):
self, draw_func, *,
ui_units_x=0,
keymap=None,
+ from_active_button=False,
):
import bpy
popup = self.popover_begin__internal(
ui_units_x=ui_units_x,
+ from_active_button=from_active_button,
)
try: