Browse Source

Fix Transform2D argument.[ci skip]

aster 11 years ago
parent
commit
56e29f5b24
2 changed files with 5 additions and 4 deletions
  1. 3 3
      Source/Engine/Urho2D/Animation2D.cpp
  2. 2 1
      Source/Engine/Urho2D/Animation2D.h

+ 3 - 3
Source/Engine/Urho2D/Animation2D.cpp

@@ -49,15 +49,15 @@ Transform2D::Transform2D() :
 {
 }
 
-Transform2D::Transform2D(const Vector2 position, float angle, const Vector2& scale) :
-position_(position), 
+Transform2D::Transform2D(const Vector2& position, float angle, const Vector2& scale) :
+    position_(position), 
     angle_(angle), 
     scale_(scale)
 {
 }
 
 Transform2D::Transform2D(const Transform2D& other) :
-position_(other.position_), 
+    position_(other.position_), 
     angle_(other.angle_), 
     scale_(other.scale_)
 {

+ 2 - 1
Source/Engine/Urho2D/Animation2D.h

@@ -71,12 +71,13 @@ public:
     Vector<Reference2D> references_;
 };
 
+/// 2D Transform class for spriter animation.
 struct Transform2D
 {
     /// Construct.
     Transform2D();
     /// Construct from position, angle, scale.
-    Transform2D(const Vector2 position, float angle, const Vector2& scale);
+    Transform2D(const Vector2& position, float angle, const Vector2& scale);
     /// Copy-construct from another transform.
     Transform2D(const Transform2D& other);