diff options
Diffstat (limited to 'source/blender/editors')
4 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index b5d88b846de..dff78d15692 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -649,7 +649,6 @@ bool ED_object_editmode_enter(bContext *C, int flag) { Main *bmain = CTX_data_main(C); Scene *scene = CTX_data_scene(C); - ViewLayer *view_layer = CTX_data_view_layer(C); Object *ob; /* Active layer checked here for view3d, diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index cc3b8398610..d7ecfadcfc5 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -2151,7 +2151,7 @@ static void bmesh_topology_rake( for (iteration = 0; iteration <= count; ++iteration) { SculptThreadedTaskData data = { - .sd = sd,.ob = ob,.brush = brush,.nodes = nodes, + .sd = sd, .ob = ob, .brush = brush, .nodes = nodes, .strength = factor, }; ParallelRangeSettings settings; diff --git a/source/blender/editors/space_buttons/buttons_context.c b/source/blender/editors/space_buttons/buttons_context.c index 35a07e41844..66bbc24eca4 100644 --- a/source/blender/editors/space_buttons/buttons_context.c +++ b/source/blender/editors/space_buttons/buttons_context.c @@ -653,7 +653,7 @@ void buttons_context_compute(const bContext *C, SpaceButs *sbuts) ptr = &path->ptr[path->len - 1]; if (ptr->type) { - if(RNA_struct_is_a(ptr->type, &RNA_Light)) + if (RNA_struct_is_a(ptr->type, &RNA_Light)) sbuts->dataicon = ICON_OUTLINER_DATA_LIGHT; else sbuts->dataicon = RNA_struct_ui_icon(ptr->type); diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index a5154fd1e8a..d3661cf60e1 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -3349,7 +3349,7 @@ void flushTransUVs(TransInfo *t) td->loc2d[0] *= size[0]; td->loc2d[1] *= size[1]; - switch(sima->pixel_snap_mode) { + switch (sima->pixel_snap_mode) { case SI_PIXEL_SNAP_CENTER: td->loc2d[0] = roundf(td->loc2d[0] - 0.5f) + 0.5f; td->loc2d[1] = roundf(td->loc2d[1] - 0.5f) + 0.5f; |