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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-04-23 11:02:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-04-23 12:04:10 +0300
commit63c46541356691a38f1cb0fab3fddb2b111c6160 (patch)
treea6b746487532a60ff10706da3e5650f4bc79d265 /source
parentfc1374c01b90112dcbeab7ef56c28b4fdac92fbd (diff)
Cleanup: uninitialized variable
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/interface/interface_region_popover.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_region_popover.c b/source/blender/editors/interface/interface_region_popover.c
index ff87770655e..5e37ce9df8b 100644
--- a/source/blender/editors/interface/interface_region_popover.c
+++ b/source/blender/editors/interface/interface_region_popover.c
@@ -87,7 +87,7 @@ static uiBlock *ui_block_func_POPOVER(bContext *C, uiPopupBlockHandle *handle, v
{
uiBlock *block;
uiPopover *pup = arg_pup;
- int offset[2], minwidth, width, height;
+ int minwidth, width, height;
if (pup->menu_func) {
pup->block->handle = handle;
@@ -119,6 +119,7 @@ static uiBlock *ui_block_func_POPOVER(bContext *C, uiPopupBlockHandle *handle, v
const int block_margin = U.widget_unit / 2;
if (pup->popover) {
+ int offset[2] = {0, 0}; /* Dummy. */
UI_block_flag_enable(block, UI_BLOCK_LOOP);
UI_block_direction_set(block, block->direction);
block->minbounds = minwidth;
@@ -167,8 +168,9 @@ uiPopupBlockHandle *ui_popover_panel_create(
* reverse some enum's but not others, so reverse all so the first menu
* items are always close to the mouse cursor */
else {
- if (but->context)
+ if (but->context) {
uiLayoutContextCopy(pup->layout, but->context);
+ }
}
/* menu is created from a callback */