fix strange bug with a const reference to a Vector
This commit is contained in:
parent
d933a61e9b
commit
1a3ae115be
@ -395,10 +395,10 @@ ShapeRef Scene::processCyl(refptr<Node> node)
|
|||||||
{
|
{
|
||||||
if ( typeid(**it) == typeid(SizeNode) )
|
if ( typeid(**it) == typeid(SizeNode) )
|
||||||
{
|
{
|
||||||
const Vector & v = *(*it)->getVector();
|
refptr<Vector> v = (*it)->getVector();
|
||||||
radius1 = v[0];
|
radius1 = (*v)[0];
|
||||||
radius2 = v[1];
|
radius2 = (*v)[1];
|
||||||
height = v[2];
|
height = (*v)[2];
|
||||||
}
|
}
|
||||||
else if ( (*it)->isMaterial() )
|
else if ( (*it)->isMaterial() )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user