Przeglądaj źródła

Merge pull request #156 from berinhardt/FIX/GetAnchorIsInPixels

[FIX] Actor::getAnchorIsInPixels was not const
Denis Muratshin 6 lat temu
rodzic
commit
1c42811a4c
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      oxygine/src/oxygine/actor/Actor.h

+ 2 - 2
oxygine/src/oxygine/actor/Actor.h

@@ -82,7 +82,7 @@ namespace oxygine
         const Vector2&      getAnchor() const {return _anchor;}
         float               getAnchorX() const {return _anchor.x;}
         float               getAnchorY() const {return _anchor.y;}
-        bool                getIsAnchorInPixels() {return (_flags & flag_anchorInPixels) != 0;}
+        bool                getIsAnchorInPixels() const {return (_flags & flag_anchorInPixels) != 0;}
         const Vector2&      getPosition() const {return _pos;}
         float               getX() const {return _pos.x;}
         float               getY() const {return _pos.y;}
@@ -439,4 +439,4 @@ namespace oxygine
 }
 
 
-EDITOR_INCLUDE(Actor);
+EDITOR_INCLUDE(Actor);