mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-18 17:59:51 -06:00
First pass on tracking changed properties/assets since initialization
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user