Skip to content

Commit 9adacd7

Browse files
committed
Fixed bug in bezier primitive caused by uninitialized data.
1 parent 0c1607c commit 9adacd7

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

source/base/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
#define OFFICIAL_VERSION_STRING "3.7.1"
4646
#define OFFICIAL_VERSION_NUMBER 371
4747

48-
#define POV_RAY_PRERELEASE "alpha.8508396"
48+
#define POV_RAY_PRERELEASE "alpha.8508492"
4949

5050
#if (POV_RAY_IS_AUTOBUILD == 1) && ((POV_RAY_IS_OFFICIAL == 1) || (POV_RAY_IS_SEMI_OFFICIAL == 1))
5151
#ifdef POV_RAY_PRERELEASE

source/core/shape/bezier.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ BEZIER_NODE *BicubicPatch::bezier_tree_builder(const ControlPoints *Patch, DBL u
262262
Vertices->uvbnds[2] = v0;
263263
Vertices->uvbnds[3] = v1;
264264

265+
Node->Count = 0;
266+
265267
Node->Data_Ptr = reinterpret_cast<void *>(Vertices);
266268
}
267269
else
@@ -705,6 +707,7 @@ void BicubicPatch::bezier_bounding_sphere(const ControlPoints *Patch, Vector3d&
705707
DBL r0, r1;
706708
Vector3d v0;
707709

710+
center = Vector3d(0.0);
708711
for (i = 0; i < 4; i++)
709712
{
710713
for (j = 0; j < 4; j++)

unix/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.7.1-alpha.8508396
1+
3.7.1-alpha.8508492

0 commit comments

Comments
 (0)