From ad5b0674f6109f0dbcba5a9da941fcf88add9352 Mon Sep 17 00:00:00 2001 From: toger5 Date: Sat, 19 Aug 2017 14:46:04 +0200 Subject: Performance styleBoxFlat: - style box flat was always drawn with 8 verts per corner in case it was a rounded corner... now it uses only one vert if it has no rounded corner. --- scene/resources/style_box.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scene/resources/style_box.cpp b/scene/resources/style_box.cpp index 67bc5b30ff..f03f7fddeb 100644 --- a/scene/resources/style_box.cpp +++ b/scene/resources/style_box.cpp @@ -514,6 +514,7 @@ inline void draw_ring(Vector &verts, Vector &indices, Vector &verts, Vector &indices, Vector &verts, Vector &indices, Vector &verts, Vector &indices, Vector