write custom action class to notify shape node about vbo changes

This commit is contained in:
wmayer
2017-02-11 16:16:26 +01:00
parent 4a0720dd00
commit fe15db6af3
6 changed files with 134 additions and 40 deletions

View File

@@ -247,6 +247,12 @@ void SoBrepFaceSet::doAction(SoAction* action)
}
}
}
// The recommended way to set 'updateVbo' is to reimplement the method 'notify'
// but the class made this method private so that we can't override it.
// So, the alternative way is to write a custom SoAction class.
else if (action->getTypeId() == Gui::SoUpdateVBOAction::getClassTypeId()) {
this->updateVbo = true;
}
inherited::doAction(action);
}