Workbench: Fix uninitialized variable usage.
This commit is contained in:
parent
272ca5772d
commit
2f56bf3535
Notes:
blender-bot
2023-02-14 11:18:07 +01:00
Referenced by issue #55230, Shapekeys sculpt mode crash
|
@ -161,7 +161,7 @@ bool studiolight_camera_in_object_shadow(WORKBENCH_PrivateData *wpd, Object *ob,
|
|||
};
|
||||
|
||||
for (int i = 0; i < 2; ++i) {
|
||||
float min_dst, max_dst;
|
||||
float min_dst = FLT_MAX, max_dst = -FLT_MAX;
|
||||
for (int j = 0; j < 4; ++j) {
|
||||
float dst = dot_v2v2(wpd->shadow_near_sides[i], pts[j]);
|
||||
/* Do min max */
|
||||
|
|
Loading…
Reference in New Issue