First pass on tracking changed properties/assets since initialization

This commit is contained in:
GPayne
2020-03-22 20:59:15 -06:00
parent 4753d562f1
commit 6253a5cf2e
7 changed files with 34 additions and 0 deletions

View File

@@ -1299,12 +1299,26 @@ void OpenSpaceEngine::postDraw() {
if (_isFirstRenderingFirstFrame) {
global::windowDelegate.setSynchronization(true);
resetPropertyChangeFlags();
_isFirstRenderingFirstFrame = false;
}
LTRACE("OpenSpaceEngine::postDraw(end)");
}
void OpenSpaceEngine::resetPropertyChangeFlags() {
ZoneScoped
std::vector<SceneGraphNode*> nodes =
global::renderEngine.scene()->allSceneGraphNodes();
for (auto n : nodes) {
std::vector<openspace::properties::Property*> props = n->properties();
for (auto p : props) {
p->resetToUnchanged();
}
}
}
void OpenSpaceEngine::keyboardCallback(Key key, KeyModifier mod, KeyAction action) {
ZoneScoped