From aff1964b25a5e7b077a5b363c5c935a874ce1fd1 Mon Sep 17 00:00:00 2001 From: Tomas Zigo <50632337+tmszi@users.noreply.github.com> Date: Thu, 22 Dec 2022 12:48:11 +0100 Subject: [PATCH] wxGUI/lmgr: hide map layer menu item 'Change opacity level' if 3d view is activated. (#2697) * wxGUI/lmgr: hide map layer menu item 'Change opacity level' If 3d view is activated. --- gui/wxpython/lmgr/layertree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/wxpython/lmgr/layertree.py b/gui/wxpython/lmgr/layertree.py index 74812631b0f..71c1988d9e4 100644 --- a/gui/wxpython/lmgr/layertree.py +++ b/gui/wxpython/lmgr/layertree.py @@ -491,7 +491,7 @@ def OnLayerContextMenu(self, event): if ltype not in ("group", "command"): if numSelected == 1: self.popupMenu.AppendSeparator() - if ltype != "raster_3d": + if not (ltype == "raster_3d" or self.mapdisplay.IsPaneShown("3d")): item = wx.MenuItem( self.popupMenu, id=self.popupID["opacity"],