RigGeometry: don't directly modify the primitive set list

This is to ensure that an element buffer object will be assigned to the primitive sets if necessary.
move
scrawl 9 years ago
parent c73ec71123
commit 95e80e7eff

@ -95,7 +95,7 @@ void RigGeometry::setSourceGeometry(osg::ref_ptr<osg::Geometry> sourceGeometry)
setStateSet(from.getStateSet());
// shallow copy primitive sets & vertex attributes that we will not modify
getPrimitiveSetList() = from.getPrimitiveSetList();
setPrimitiveSetList(from.getPrimitiveSetList());
setColorArray(from.getColorArray());
setSecondaryColorArray(from.getSecondaryColorArray());
setFogCoordArray(from.getFogCoordArray());

Loading…
Cancel
Save