selected object is highlighted only in editor
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user