diff options
author | Thomas Beck <software@plasmasolutions.de> | 2017-05-09 21:12:25 +0300 |
---|---|---|
committer | Thomas Beck <software@plasmasolutions.de> | 2017-05-09 21:12:25 +0300 |
commit | 894513c7fd561bacc21079891a80be7b640f29a1 (patch) | |
tree | c57cfa7947dc3db35a6226c15deb5f4f7d1def1c /source/blender/editors/interface | |
parent | 4d38932cb430139975fd1fc13436317b2a16fdc4 (diff) |
Fix (unreported): Crash if a right click is performed on an image datablock (open btn f.e.).
Only access/insert the button_pointer if it's not null...
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index b50789ff897..bb30f827294 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -7012,7 +7012,8 @@ static bool ui_but_menu(bContext *C, uiBut *but) } /* Set the operator pointer for python access */ - uiLayoutSetContextPointer(layout,"button_operator", but->opptr); + if (but->opptr) + uiLayoutSetContextPointer(layout,"button_operator", but->opptr); uiItemS(layout); } |