diff --git a/toonz/sources/include/tgeometry.h b/toonz/sources/include/tgeometry.h index bc0185b..9542e3e 100644 --- a/toonz/sources/include/tgeometry.h +++ b/toonz/sources/include/tgeometry.h @@ -192,7 +192,7 @@ public: inline explicit T3DPointT(const T4DPointT &p); inline TPointT& xy() { return *(TPointT*)this; } - inline TPointT& xy() const { return *(const TPointT*)this; } + inline const TPointT& xy() const { return *(const TPointT*)this; } inline T3DPointT &operator+=(const T3DPointT &a) { return x += a.x, y += a.y, z += a.z, *this; } @@ -301,8 +301,8 @@ public: inline TPointT& xy() { return *(TPointT*)this; } inline T3DPointT& xyz() { return *(T3DPointT*)this; } - inline TPointT& xy() const { return *(const TPointT*)this; } - inline T3DPointT& xyz() const { return *(const T3DPointT*)this; } + inline const TPointT& xy() const { return *(const TPointT*)this; } + inline const T3DPointT& xyz() const { return *(const T3DPointT*)this; } inline bool operator==(const T4DPointT &p) const { return x == p.x && y == p.y && z == p.z && w == p.w; }