mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-02-17 01:12:37 +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: {
|
case AvatarInfoFurni.FURNI: {
|
||||||
const info = (avatarInfo as AvatarInfoFurni);
|
const info = (avatarInfo as AvatarInfoFurni);
|
||||||
|
|
||||||
|
if(!isDecorating) return null;
|
||||||
|
|
||||||
return <AvatarInfoWidgetFurniView avatarInfo={ info } close={ () => setAvatarInfo(null) } />;
|
return <AvatarInfoWidgetFurniView avatarInfo={ info } close={ () => setAvatarInfo(null) } />;
|
||||||
}
|
}
|
||||||
case AvatarInfoUser.OWN_USER:
|
case AvatarInfoUser.OWN_USER:
|
||||||
|
@ -68,8 +68,6 @@ const useAvatarInfoWidgetState = () =>
|
|||||||
{
|
{
|
||||||
case RoomObjectCategory.FLOOR:
|
case RoomObjectCategory.FLOOR:
|
||||||
case RoomObjectCategory.WALL:
|
case RoomObjectCategory.WALL:
|
||||||
if(!isDecorating) break;
|
|
||||||
|
|
||||||
info = AvatarInfoUtilities.getFurniInfo(objectId, category)
|
info = AvatarInfoUtilities.getFurniInfo(objectId, category)
|
||||||
break;
|
break;
|
||||||
case RoomObjectCategory.UNIT: {
|
case RoomObjectCategory.UNIT: {
|
||||||
@ -282,7 +280,7 @@ const useAvatarInfoWidgetState = () =>
|
|||||||
|
|
||||||
useObjectRollOutEvent(event =>
|
useObjectRollOutEvent(event =>
|
||||||
{
|
{
|
||||||
if(!activeNameBubble || (activeNameBubble.roomIndex !== event.id)) return;
|
if(!activeNameBubble || (event.category !== RoomObjectCategory.UNIT) || (activeNameBubble.roomIndex !== event.id)) return;
|
||||||
|
|
||||||
setActiveNameBubble(null);
|
setActiveNameBubble(null);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user