selected object is highlighted only in editor

This commit is contained in:
azykov@mail.ru
2026-06-02 08:13:39 +03:00
parent ca5dea5093
commit f3033d1d0d
2 changed files with 5 additions and 1 deletions
+2 -1
View File
@@ -16,7 +16,8 @@ export const ObjectView = observer(function ({ object }: ObjectViewProps) {
if (!objectType)
return null;
const isSelected = state.worldEditor.selectedObjectId === object.id;
const isSelected = state.worldEditor.isEnabled &&
state.worldEditor.selectedObjectId === object.id;
const handleClick = (e: { stopPropagation: () => void }) => {
if (!state.worldEditor.isEnabled)