mirror of
https://github.com/ppy/osu.git
synced 2025-02-22 05:23:05 +08:00
Add missing base
calls for safety
This commit is contained in:
parent
2fda45cad4
commit
d722be16e3
@ -84,6 +84,8 @@ namespace osu.Game.Tests.Visual.Editing
|
|||||||
|
|
||||||
targetContainer = getTargetContainer();
|
targetContainer = getTargetContainer();
|
||||||
initialRotation = targetContainer!.Rotation;
|
initialRotation = targetContainer!.Rotation;
|
||||||
|
|
||||||
|
base.Begin();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Update(float rotation, Vector2? origin = null)
|
public override void Update(float rotation, Vector2? origin = null)
|
||||||
@ -102,6 +104,8 @@ namespace osu.Game.Tests.Visual.Editing
|
|||||||
|
|
||||||
targetContainer = null;
|
targetContainer = null;
|
||||||
initialRotation = null;
|
initialRotation = null;
|
||||||
|
|
||||||
|
base.Commit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,6 +61,8 @@ namespace osu.Game.Overlays.SkinEditor
|
|||||||
originalRotations = objectsInRotation.ToDictionary(d => d, d => d.Rotation);
|
originalRotations = objectsInRotation.ToDictionary(d => d, d => d.Rotation);
|
||||||
originalPositions = objectsInRotation.ToDictionary(d => d, d => d.ToScreenSpace(d.OriginPosition));
|
originalPositions = objectsInRotation.ToDictionary(d => d, d => d.ToScreenSpace(d.OriginPosition));
|
||||||
defaultOrigin = GeometryUtils.GetSurroundingQuad(objectsInRotation.SelectMany(d => d.ScreenSpaceDrawQuad.GetVertices().ToArray())).Centre;
|
defaultOrigin = GeometryUtils.GetSurroundingQuad(objectsInRotation.SelectMany(d => d.ScreenSpaceDrawQuad.GetVertices().ToArray())).Centre;
|
||||||
|
|
||||||
|
base.Begin();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Update(float rotation, Vector2? origin = null)
|
public override void Update(float rotation, Vector2? origin = null)
|
||||||
@ -99,6 +101,8 @@ namespace osu.Game.Overlays.SkinEditor
|
|||||||
originalPositions = null;
|
originalPositions = null;
|
||||||
originalRotations = null;
|
originalRotations = null;
|
||||||
defaultOrigin = null;
|
defaultOrigin = null;
|
||||||
|
|
||||||
|
base.Commit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user