Allow to use the 3D editor with a toggle in the preferences

This commit is contained in:
Florian Rival
2023-06-03 14:19:00 +02:00
parent 8941e04390
commit e681d27bb8

View File

@@ -350,19 +350,16 @@ const PreferencesDialog = ({ i18n, onClose }: Props) => {
</Trans>
}
/>
{/* TODO (3D) Remove development flag when the scene editor supports 3D display. */}
{Window.isDev() && (
<Toggle
onToggle={(e, check) => setShowObjectInstancesIn3D(check)}
toggled={values.showObjectInstancesIn3D}
labelPosition="right"
label={
<Trans>
Show objects in 3D in the scene editor (experimental)
</Trans>
}
/>
)}
<Toggle
onToggle={(e, check) => setShowObjectInstancesIn3D(check)}
toggled={values.showObjectInstancesIn3D}
labelPosition="right"
label={
<Trans>
Show objects in 3D in the scene editor (experimental)
</Trans>
}
/>
{electron && (
<>
<ColumnStackLayout expand noMargin>