diff --git a/components/sceneutil/riggeometry.cpp b/components/sceneutil/riggeometry.cpp index 410ab5300..87afce034 100644 --- a/components/sceneutil/riggeometry.cpp +++ b/components/sceneutil/riggeometry.cpp @@ -95,7 +95,7 @@ void RigGeometry::setSourceGeometry(osg::ref_ptr 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());