diff options
Diffstat (limited to 'source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_circle.cc')
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_circle.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_circle.cc b/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_circle.cc index 6d286a9d583..d19da9ff09e 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_circle.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_circle.cc @@ -67,8 +67,7 @@ static int circle_vert_total(const GeometryNodeMeshCircleFillType fill_type, con case GEO_NODE_MESH_CIRCLE_FILL_TRIANGLE_FAN: return verts_num + 1; } - BLI_assert(false); - return 0; + BLI_UNREACHABLE_ABORT; } static int circle_edge_total(const GeometryNodeMeshCircleFillType fill_type, const int verts_num) @@ -80,8 +79,7 @@ static int circle_edge_total(const GeometryNodeMeshCircleFillType fill_type, con case GEO_NODE_MESH_CIRCLE_FILL_TRIANGLE_FAN: return verts_num * 2; } - BLI_assert(false); - return 0; + BLI_UNREACHABLE_ABORT; } static int circle_corner_total(const GeometryNodeMeshCircleFillType fill_type, const int verts_num) @@ -94,8 +92,7 @@ static int circle_corner_total(const GeometryNodeMeshCircleFillType fill_type, c case GEO_NODE_MESH_CIRCLE_FILL_TRIANGLE_FAN: return verts_num * 3; } - BLI_assert(false); - return 0; + BLI_UNREACHABLE_ABORT; } static int circle_face_total(const GeometryNodeMeshCircleFillType fill_type, const int verts_num) @@ -108,8 +105,7 @@ static int circle_face_total(const GeometryNodeMeshCircleFillType fill_type, con case GEO_NODE_MESH_CIRCLE_FILL_TRIANGLE_FAN: return verts_num; } - BLI_assert(false); - return 0; + BLI_UNREACHABLE_ABORT; } static Mesh *create_circle_mesh(const float radius, |