|
|
I have been experiencing crashes running the latest beta of POV-Ray v3.8 (Win64)
when trying to call a spline. The narrowed it down to a few lines of code that
causes the crash:
#macro make_spline()
#local _s = spline {
quadratic_spline
0, <0, 0, 0>,
1, <0, 0, 1>,
2, <1, 0, 2>,
3, <2, 1, 3>
}
_s
#end
#local myspline = spline { make_spline() }
#debug concat("_pt=<", vstr(3, myspline(0), ",", 0, 3), ">\n")
The contents of the spline don't seem to matter nor does the type of spline.
The result is a memory access violation.
When I run the same code on v3.7 it works fine.
Declaring the spline outside of a macro does not cause the crash:
#local myspline = spline {
natural_spline
0, <0, 0, 0>,
1, <0, 0, 1>,
2, <1, 0, 2>,
3, <2, 1, 3>
}
#debug concat("_pt=<", vstr(3, myspline(0), ",", 0, 3), ">\n")
-- Chris R.
Post a reply to this message
|
|