diff options
Diffstat (limited to 'sd/source/ui/view/drviews7.cxx')
-rw-r--r-- | sd/source/ui/view/drviews7.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sd/source/ui/view/drviews7.cxx b/sd/source/ui/view/drviews7.cxx index d57b4a6ad2ba..2bd235ec3bc6 100644 --- a/sd/source/ui/view/drviews7.cxx +++ b/sd/source/ui/view/drviews7.cxx @@ -43,6 +43,8 @@ #include <svx/extrusionbar.hxx> #include <svx/fontworkbar.hxx> +#include <svtools/miscopt.hxx> + // #UndoRedo# #include <svl/slstitm.hxx> #include <sfx2/app.hxx> @@ -1660,13 +1662,18 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) } } + bool bDisableInsert3DModel = false; #if !HAVE_FEATURE_GLTF - if (SFX_ITEM_AVAILABLE == rSet.GetItemState(SID_INSERT_3DMODEL)) + bDisableInsert3DModel = true; +#else + bDisableInsert3DModel = !SvtMiscOptions().IsExperimentalMode(); +#endif + + if (bDisableInsert3DModel && SFX_ITEM_AVAILABLE == rSet.GetItemState(SID_INSERT_3DMODEL)) { rSet.DisableItem(SID_INSERT_3DMODEL); rSet.Put(SfxVisibilityItem(SID_INSERT_3DMODEL, false)); } -#endif GetModeSwitchingMenuState (rSet); } |