diff --git a/gui/wxpython/lmgr/layertree.py b/gui/wxpython/lmgr/layertree.py index aa0d1a6ce56..7e62c252576 100644 --- a/gui/wxpython/lmgr/layertree.py +++ b/gui/wxpython/lmgr/layertree.py @@ -485,7 +485,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'],