Cleanup: unused var, style
authorCampbell Barton <ideasman42@gmail.com>
Wed, 5 Dec 2018 21:45:41 +0000 (08:45 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 5 Dec 2018 21:45:41 +0000 (08:45 +1100)
release/scripts/startup/bl_ui/space_topbar.py
source/blender/draw/intern/draw_cache_impl_mesh.c
source/blender/draw/modes/overlay_mode.c
source/blender/editors/include/ED_gpencil.h

index 8c8db7ed20208b078611771c398b7c0e5e279f24..a74683d2849dbbe4a72c1720e011fa4e7b4b2725 100644 (file)
@@ -389,7 +389,7 @@ class _draw_left_context_mode:
             sub = row.row(align=True)
             sub.enabled = tool not in {'GRAB', 'CLONE'}
             sub.prop(brush, "use_pressure_radius", text="")
-            
+
             row = layout.row(align=True)
             row.prop(brush, "strength", slider=True)
             row.prop(brush, "use_pressure_strength", text="")
index 44c783fb51b74566cd4d05ff05a69a2d45e9a594..2c924ebce748fa4644550a3b833244a9f39f5d67 100644 (file)
@@ -4399,7 +4399,7 @@ static GPUVertBuf *mesh_batch_cache_create_edges_overlay_texture_buf(
                                GPU_vertbuf_attr_set(vbo, index_id, vidx++, &vdata[e]);
                        }
                        else {
-                               GPU_vertbuf_attr_set(vbo, index_id, vidx_end+e, &vdata[e]);
+                               GPU_vertbuf_attr_set(vbo, index_id, vidx_end + e, &vdata[e]);
                        }
                }
        }
@@ -5128,6 +5128,7 @@ void DRW_mesh_batch_cache_get_wireframes_face_texbuf(
                        if (p_origindex == NULL) {
                                bm_mapped = NULL;
                        }
+                       UNUSED_VARS(bm_mapped);
 
                        me_fake = *me->edit_btmesh->mesh_eval_final;
                        me_fake.mat = me->mat;
index 46330d4d81c524a775120c705b3c04cae416034e..912c8cdec49de8e43183b5494437030be6668256 100644 (file)
@@ -265,7 +265,7 @@ static void overlay_cache_populate(void *vedata, Object *ob)
 
                /* Don't do that in edit Mesh mode, unless there is a modifier preview. */
                if ((((ob != draw_ctx->object_edit) && !BKE_object_is_in_editmode(ob)) || has_edit_mesh_cage) ||
-                       ob->type != OB_MESH)
+                   ob->type != OB_MESH)
                {
                        const bool is_active = (ob == draw_ctx->obact);
                        const bool is_sculpt_mode = is_active && (draw_ctx->object_mode & OB_MODE_SCULPT) != 0;
index b23f5afef526a5abdc1d2f87d872056c82efed8a..3ea0dbf10faae5864c6bbd0e3050c7fe13ff5e00 100644 (file)
@@ -83,7 +83,7 @@ typedef struct tGPspoint {
 
 /* Temporary 'Stroke Point' data (2D / screen-space)
  *
- * Used for primitives. See: D4030 
+ * Used for primitives. See: D4030
  */
 typedef struct tPGPspoint {
        float x, y;             /* x and y coordinates of cursor (in relative to area) */