mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +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
@ -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…
x
Reference in New Issue
Block a user