mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 20:29:57 +00:00
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.
This commit is contained in:
parent
c73ec71123
commit
95e80e7eff
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ void RigGeometry::setSourceGeometry(osg::ref_ptr<osg::Geometry> sourceGeometry)
|
||||||
setStateSet(from.getStateSet());
|
setStateSet(from.getStateSet());
|
||||||
|
|
||||||
// shallow copy primitive sets & vertex attributes that we will not modify
|
// shallow copy primitive sets & vertex attributes that we will not modify
|
||||||
getPrimitiveSetList() = from.getPrimitiveSetList();
|
setPrimitiveSetList(from.getPrimitiveSetList());
|
||||||
setColorArray(from.getColorArray());
|
setColorArray(from.getColorArray());
|
||||||
setSecondaryColorArray(from.getSecondaryColorArray());
|
setSecondaryColorArray(from.getSecondaryColorArray());
|
||||||
setFogCoordArray(from.getFogCoordArray());
|
setFogCoordArray(from.getFogCoordArray());
|
||||||
|
|
Loading…
Reference in a new issue