summaryrefslogtreecommitdiff
path: root/core/math/geometry.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-08-17 13:31:08 +0200
committerGitHub <noreply@github.com>2019-08-17 13:31:08 +0200
commitde4aabe89b7b68677f145f21c956183bbc92f686 (patch)
tree20b2e819d599d6d1bd459bb51880c31e97cfe825 /core/math/geometry.h
parent40640a01dc90be00e55e4eef3c7800401ef63b18 (diff)
parent71d71d55b5c0d6da4d1555823ac432bf0b33389a (diff)
Merge pull request #31244 from Unholydeath/BB_ChangeErrorMacros
Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in 'core/' and 'editor/'
Diffstat (limited to 'core/math/geometry.h')
-rw-r--r--core/math/geometry.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/math/geometry.h b/core/math/geometry.h
index a32ed2f56b..82d9884e9b 100644
--- a/core/math/geometry.h
+++ b/core/math/geometry.h
@@ -834,8 +834,7 @@ public:
static Vector<Vector<Point2> > offset_polyline_2d(const Vector<Vector2> &p_polygon, real_t p_delta, PolyJoinType p_join_type, PolyEndType p_end_type) {
- ERR_EXPLAIN("Attempt to offset a polyline like a polygon (use offset_polygon_2d instead).");
- ERR_FAIL_COND_V(p_end_type == END_POLYGON, Vector<Vector<Point2> >());
+ ERR_FAIL_COND_V_MSG(p_end_type == END_POLYGON, Vector<Vector<Point2> >(), "Attempt to offset a polyline like a polygon (use offset_polygon_2d instead).");
return _polypath_offset(p_polygon, p_delta, p_join_type, p_end_type);
}