cleanup
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
@@ -346,8 +346,7 @@ bool RigTransformHardware::init(RigGeometry& rig)
|
||||
stateset->removeUniform("matrixPalette");
|
||||
stateset->addUniform(_uniformMatrixPalette);
|
||||
|
||||
stateset->removeAttribute(osg::StateAttribute::PROGRAM);
|
||||
stateset->setAttributeAndModes(program.get());
|
||||
stateset->setAttribute(program.get());
|
||||
|
||||
_needInit = false;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user