[Bf-blender-cvs] [37f50ffdbcb] master: Cleanup: Braces around initialization warning
Sergey Sharybin
noreply at git.blender.org
Mon Nov 14 14:44:29 CET 2022
Commit: 37f50ffdbcbd973f69e708d91d3b28069a8a23ea
Author: Sergey Sharybin
Date: Mon Nov 14 14:43:41 2022 +0100
Branches: master
https://developer.blender.org/rB37f50ffdbcbd973f69e708d91d3b28069a8a23ea
Cleanup: Braces around initialization warning
There is no need to initialize the bounding box as it is fully
initialized by the BKE_boundbox_init_from_minmax().
===================================================================
M source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.cc
===================================================================
diff --git a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.cc b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.cc
index b4025454022..6971ebae449 100644
--- a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.cc
+++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.cc
@@ -2433,7 +2433,7 @@ static bool lineart_geometry_check_visible(double model_view_proj[4][4],
float mesh_min[3], mesh_max[3];
INIT_MINMAX(mesh_min, mesh_max);
BKE_mesh_minmax(use_mesh, mesh_min, mesh_max);
- BoundBox bb = {0};
+ BoundBox bb;
BKE_boundbox_init_from_minmax(&bb, mesh_min, mesh_max);
double co[8][4];
More information about the Bf-blender-cvs
mailing list