Skip to content

Commit 561bac4

Browse files
committed
Merge pull request #112285 from Insert-Uncreateive-Name-Here/master
Fix `CollisionPolygon3D` debug shape rendering.
2 parents cef4a78 + 4fe40ac commit 561bac4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

editor/scene/3d/gizmos/physics/collision_polygon_3d_gizmo_plugin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ void CollisionPolygon3DGizmoPlugin::redraw(EditorNode3DGizmo *p_gizmo) {
168168
Vector<Color> cap_colours_bottom;
169169
Vector<int> cap_indices_bottom;
170170

171-
const int index_offset = verts_size;
171+
const int index_offset = verts.size();
172172

173173
const Vector<Vector2> &convex = decomp[i];
174174
const int convex_size = convex.size();
@@ -198,7 +198,7 @@ void CollisionPolygon3DGizmoPlugin::redraw(EditorNode3DGizmo *p_gizmo) {
198198
Vector<Color> cap_colours_top;
199199
Vector<int> cap_indices_top;
200200

201-
const int index_offset = verts_size;
201+
const int index_offset = verts.size();
202202

203203
const Vector<Vector2> &convex = decomp[i];
204204
const int convex_size = convex.size();

0 commit comments

Comments
 (0)