mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:23:52 +00:00
Do not allocate empty callbacks in the RigGeometry
This commit is contained in:
parent
56fea4b062
commit
4ab93aeffe
1 changed files with 3 additions and 2 deletions
|
@ -40,8 +40,8 @@ RigGeometry::RigGeometry()
|
||||||
, mLastFrameNumber(0)
|
, mLastFrameNumber(0)
|
||||||
, mBoundsFirstFrame(true)
|
, mBoundsFirstFrame(true)
|
||||||
{
|
{
|
||||||
setUpdateCallback(new osg::Callback); // dummy to make sure getNumChildrenRequiringUpdateTraversal() is correct
|
setNumChildrenRequiringUpdateTraversal(1);
|
||||||
// update done in accept(NodeVisitor&)
|
// update done in accept(NodeVisitor&)
|
||||||
}
|
}
|
||||||
|
|
||||||
RigGeometry::RigGeometry(const RigGeometry ©, const osg::CopyOp ©op)
|
RigGeometry::RigGeometry(const RigGeometry ©, const osg::CopyOp ©op)
|
||||||
|
@ -54,6 +54,7 @@ RigGeometry::RigGeometry(const RigGeometry ©, const osg::CopyOp ©op)
|
||||||
, mBoundsFirstFrame(true)
|
, mBoundsFirstFrame(true)
|
||||||
{
|
{
|
||||||
setSourceGeometry(copy.mSourceGeometry);
|
setSourceGeometry(copy.mSourceGeometry);
|
||||||
|
setNumChildrenRequiringUpdateTraversal(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void RigGeometry::setSourceGeometry(osg::ref_ptr<osg::Geometry> sourceGeometry)
|
void RigGeometry::setSourceGeometry(osg::ref_ptr<osg::Geometry> sourceGeometry)
|
||||||
|
|
Loading…
Reference in a new issue