Merge pull request #2083 from AnyOldName3/fix-vao-rig-bug

Fix animation bug with VAOs
pull/2086/head
Chris Djali 5 years ago committed by GitHub
commit 0f9f7f0b59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,6 +2,8 @@
#include <cassert>
#include <osg/Version>
namespace SceneUtil
{
@ -176,6 +178,10 @@ void MorphGeometry::cull(osg::NodeVisitor *nv)
positionDst->dirty();
#if OSG_MIN_VERSION_REQUIRED(3, 5, 6)
geom.dirtyGLObjects();
#endif
nv->pushOntoNodePath(&geom);
nv->apply(geom);
nv->popFromNodePath();

@ -3,6 +3,8 @@
#include <stdexcept>
#include <cstdlib>
#include <osg/Version>
#include <components/debug/debuglog.hpp>
#include "skeleton.hpp"
@ -235,6 +237,10 @@ void RigGeometry::cull(osg::NodeVisitor* nv)
if (tangentDst)
tangentDst->dirty();
#if OSG_MIN_VERSION_REQUIRED(3, 5, 6)
geom.dirtyGLObjects();
#endif
nv->pushOntoNodePath(&geom);
nv->apply(geom);
nv->popFromNodePath();

Loading…
Cancel
Save