mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-31 11:12:35 +01:00
Merge branch 'dev' into 'dev'
Fix group badge disconnects in v2 See merge request nitro/nitro-renderer!12
This commit is contained in:
commit
d3e7356b4b
@ -1,4 +1,4 @@
|
|||||||
import { Resource, Texture } from '@pixi/core';
|
import { Resource, Texture } from '@pixi/core';
|
||||||
import { NitroContainer, NitroTexture } from '../../..';
|
import { NitroContainer, NitroTexture } from '../../..';
|
||||||
import { IAssetManager } from '../../../core/asset/IAssetManager';
|
import { IAssetManager } from '../../../core/asset/IAssetManager';
|
||||||
import { IMessageEvent } from '../../../core/communication/messages/IMessageEvent';
|
import { IMessageEvent } from '../../../core/communication/messages/IMessageEvent';
|
||||||
@ -202,6 +202,8 @@ export class BadgeImageManager implements IDisposable
|
|||||||
|
|
||||||
const partNames = ((part.type === 'b') ? this._groupBases.get(part.key) : this._groupSymbols.get(part.key));
|
const partNames = ((part.type === 'b') ? this._groupBases.get(part.key) : this._groupSymbols.get(part.key));
|
||||||
|
|
||||||
|
if(partNames)
|
||||||
|
{
|
||||||
for(const partName of partNames)
|
for(const partName of partNames)
|
||||||
{
|
{
|
||||||
if(!partName || !partName.length) continue;
|
if(!partName || !partName.length) continue;
|
||||||
@ -222,6 +224,7 @@ export class BadgeImageManager implements IDisposable
|
|||||||
container.addChild(sprite);
|
container.addChild(sprite);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this._requestedBadges.delete(groupBadge.code);
|
this._requestedBadges.delete(groupBadge.code);
|
||||||
this._groupBadgesQueue.delete(groupBadge.code);
|
this._groupBadgesQueue.delete(groupBadge.code);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user