mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 03:22:55 +08:00
Merge pull request #10873 from smoogipoo/remove-parent-dho-pooling
Remove ability to pool DHOs in parent playfields
This commit is contained in:
commit
f177792915
@ -218,9 +218,6 @@ namespace osu.Game.Rulesets.UI
|
|||||||
|
|
||||||
#region Pooling support
|
#region Pooling support
|
||||||
|
|
||||||
[Resolved(CanBeNull = true)]
|
|
||||||
private IPooledHitObjectProvider parentPooledObjectProvider { get; set; }
|
|
||||||
|
|
||||||
private readonly Dictionary<Type, IDrawablePool> pools = new Dictionary<Type, IDrawablePool>();
|
private readonly Dictionary<Type, IDrawablePool> pools = new Dictionary<Type, IDrawablePool>();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -320,10 +317,7 @@ namespace osu.Game.Rulesets.UI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pool == null)
|
return (DrawableHitObject)pool?.Get(d =>
|
||||||
return parentPooledObjectProvider?.GetPooledDrawableRepresentation(hitObject);
|
|
||||||
|
|
||||||
return (DrawableHitObject)pool.Get(d =>
|
|
||||||
{
|
{
|
||||||
var dho = (DrawableHitObject)d;
|
var dho = (DrawableHitObject)d;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user