mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-13 11:20:31 +00:00
Merge pull request #1504 from smoogipoo/reduce-masking-calculations
Significantly reduce number of IsMaskedAway calculations
This commit is contained in:
@@ -374,6 +374,9 @@ namespace osu.Framework.Graphics
|
||||
/// <returns>Whether masking calculations have taken place.</returns>
|
||||
public virtual bool UpdateSubTreeMasking(Drawable source, RectangleF maskingBounds)
|
||||
{
|
||||
if (!IsPresent)
|
||||
return false;
|
||||
|
||||
if (HasProxy && source != proxy)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user