New issue 275 by sop...@gmail.com: prman DSO segfaults in
AddGeomToParamListBuilderAsFloat
http://code.google.com/p/alembic/issues/detail?id=275
What steps will reproduce the problem?
1. Export polys as subdives from maya.
2. Make rib with Procedural as usual.
3. Segfaults while copying values to std::vector in
ParamListBuilder::addAsFloat
What is the expected output? What do you see instead?
No segfaults
What version of the product are you using? On what operating system?
1.0.5
It looks like AddGeomToParamListBuilderAsFloat calculates wrong boundary
for array with IV2farray. Attached patch fixes this issue, uvs are rendered
ok. No segfaults.
With UVs that function gets baseArrayExtent as 2, then multiplies it by
param.getArrayExtent() to get length of data array, and when calling
ParamListBuilder::addAsFloat it again multiplies it by param::getExtent().
Fix is just param extent * param array extent.
Attachments:
dsopatch.diff 592 bytes