Cleanup: replace attrib w/ attr
[blender.git] / source / blender / draw / modes / edit_text_mode.c
index ff0e77b0df1925bf6eeb98b33e73a77ccbf7b18b..ca533a00737272dd54b3e8b12d63aa01ae2f4651 100644 (file)
 
 /* If builtin shaders are needed */
 #include "GPU_shader.h"
-#include "GPU_batch.h"
 
 #include "draw_common.h"
 
-#include "draw_mode_engines.h"
-
 /* *********** LISTS *********** */
 /* All lists are per viewport specific datas.
  * They are all free when viewport changes engines
@@ -219,10 +216,12 @@ static void edit_text_cache_populate_select(void *vedata, Object *ob)
 
                float selboxw;
                if (i + 1 != ef->selboxes_len) {
-                       if (ef->selboxes[i + 1].y == sb->y)
+                       if (ef->selboxes[i + 1].y == sb->y) {
                                selboxw = ef->selboxes[i + 1].x - sb->x;
-                       else
+                       }
+                       else {
                                selboxw = sb->w;
+                       }
                }
                else {
                        selboxw = sb->w;