fix strange bug with a const reference to a Vector

This commit is contained in:
Josh Holtrop 2011-02-08 17:31:47 -05:00
parent d933a61e9b
commit 1a3ae115be

View File

@ -395,10 +395,10 @@ ShapeRef Scene::processCyl(refptr<Node> node)
{
if ( typeid(**it) == typeid(SizeNode) )
{
const Vector & v = *(*it)->getVector();
radius1 = v[0];
radius2 = v[1];
height = v[2];
refptr<Vector> v = (*it)->getVector();
radius1 = (*v)[0];
radius2 = (*v)[1];
height = (*v)[2];
}
else if ( (*it)->isMaterial() )
{