This commit is contained in:
Julien Valentin
2017-09-01 15:12:10 +02:00
parent dee9dc2164
commit 8b74b04de0
2 changed files with 3 additions and 3 deletions

View File

@@ -48,7 +48,8 @@ bool MorphTransformHardware::init(MorphGeometry& morphGeometry)
///check for correct morph configuration
///(blender osgexport doesn't set sources so assume morphgeom arrays are sources)
if(pos)
{ pos->setDataVariance(osg::Object::STATIC);
{
pos->setDataVariance(osg::Object::STATIC);
///check if source is setted correctly
if (!vertexSource|| vertexSource->size() != pos->size())
{