mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 15:27:30 +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();
|
||||
initialRotation = targetContainer!.Rotation;
|
||||
|
||||
base.Begin();
|
||||
}
|
||||
|
||||
public override void Update(float rotation, Vector2? origin = null)
|
||||
@ -102,6 +104,8 @@ namespace osu.Game.Tests.Visual.Editing
|
||||
|
||||
targetContainer = null;
|
||||
initialRotation = null;
|
||||
|
||||
base.Commit();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -61,6 +61,8 @@ namespace osu.Game.Overlays.SkinEditor
|
||||
originalRotations = objectsInRotation.ToDictionary(d => d, d => d.Rotation);
|
||||
originalPositions = objectsInRotation.ToDictionary(d => d, d => d.ToScreenSpace(d.OriginPosition));
|
||||
defaultOrigin = GeometryUtils.GetSurroundingQuad(objectsInRotation.SelectMany(d => d.ScreenSpaceDrawQuad.GetVertices().ToArray())).Centre;
|
||||
|
||||
base.Begin();
|
||||
}
|
||||
|
||||
public override void Update(float rotation, Vector2? origin = null)
|
||||
@ -99,6 +101,8 @@ namespace osu.Game.Overlays.SkinEditor
|
||||
originalPositions = null;
|
||||
originalRotations = null;
|
||||
defaultOrigin = null;
|
||||
|
||||
base.Commit();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user