summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/drviews7.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/view/drviews7.cxx')
-rw-r--r--sd/source/ui/view/drviews7.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/sd/source/ui/view/drviews7.cxx b/sd/source/ui/view/drviews7.cxx
index b0bec1dfd256..81e2e005a14c 100644
--- a/sd/source/ui/view/drviews7.cxx
+++ b/sd/source/ui/view/drviews7.cxx
@@ -80,6 +80,8 @@
#include "fubullet.hxx"
#include "fuformatpaintbrush.hxx"
+#include <config_features.h>
+
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
@@ -1592,6 +1594,14 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet )
}
}
+#if !HAVE_FEATURE_GLTF
+ if (SFX_ITEM_AVAILABLE == rSet.GetItemState(SID_INSERT_3DMODEL))
+ {
+ rSet.DisableItem(SID_INSERT_3DMODEL);
+ rSet.Put(SfxVisibilityItem(SID_INSERT_3DMODEL, false));
+ }
+#endif
+
GetModeSwitchingMenuState (rSet);
}