| Index: sky/examples/game/lib/node_with_size.dart
|
| diff --git a/sky/examples/game/lib/node_with_size.dart b/sky/examples/game/lib/node_with_size.dart
|
| index 3a6849a954f68c06c8bb75a91fe6c81678341b58..e8577f390d214c9dd0539dcb5d3fa1b0a4d3f0fe 100644
|
| --- a/sky/examples/game/lib/node_with_size.dart
|
| +++ b/sky/examples/game/lib/node_with_size.dart
|
| @@ -9,7 +9,9 @@ abstract class NodeWithSize extends Node {
|
| pivot = Point.origin;
|
| }
|
|
|
| - NodeWithSize.withSize(Size this.size, [Point this.pivot]);
|
| + NodeWithSize.withSize(Size this.size, [Point this.pivot]) {
|
| + if (pivot == null) pivot = Point.origin;
|
| + }
|
|
|
| void applyTransformForPivot(PictureRecorder canvas) {
|
| if (pivot.x != 0 || pivot.y != 0) {
|
|
|