mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-22 22:30:52 +01:00
Fix furni infostand
This commit is contained in:
parent
33a40ddb7d
commit
cabf4ecca1
@ -60,6 +60,8 @@ export const AvatarInfoWidgetView: FC<{}> = props =>
|
||||
case AvatarInfoFurni.FURNI: {
|
||||
const info = (avatarInfo as AvatarInfoFurni);
|
||||
|
||||
if(!isDecorating) return null;
|
||||
|
||||
return <AvatarInfoWidgetFurniView avatarInfo={ info } close={ () => setAvatarInfo(null) } />;
|
||||
}
|
||||
case AvatarInfoUser.OWN_USER:
|
||||
|
@ -68,8 +68,6 @@ const useAvatarInfoWidgetState = () =>
|
||||
{
|
||||
case RoomObjectCategory.FLOOR:
|
||||
case RoomObjectCategory.WALL:
|
||||
if(!isDecorating) break;
|
||||
|
||||
info = AvatarInfoUtilities.getFurniInfo(objectId, category)
|
||||
break;
|
||||
case RoomObjectCategory.UNIT: {
|
||||
@ -282,7 +280,7 @@ const useAvatarInfoWidgetState = () =>
|
||||
|
||||
useObjectRollOutEvent(event =>
|
||||
{
|
||||
if(!activeNameBubble || (activeNameBubble.roomIndex !== event.id)) return;
|
||||
if(!activeNameBubble || (event.category !== RoomObjectCategory.UNIT) || (activeNameBubble.roomIndex !== event.id)) return;
|
||||
|
||||
setActiveNameBubble(null);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user