mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-23 04:30:15 -06:00
Add BoolProperty to SpaceModule to control SpiceManager exception handling (closes #661)
Add debugging indices to SceneGraphNodes Rename ImGui indices debugging definition
This commit is contained in:
@@ -52,6 +52,10 @@ namespace {
|
||||
|
||||
namespace openspace {
|
||||
|
||||
#ifdef Debugging_Core_SceneGraphNode_Indices
|
||||
int SceneGraphNode::nextIndex = 0;
|
||||
#endif // Debugging_Core_SceneGraphNode_Indices
|
||||
|
||||
std::unique_ptr<SceneGraphNode> SceneGraphNode::createFromDictionary(
|
||||
const ghoul::Dictionary& dictionary)
|
||||
{
|
||||
@@ -62,6 +66,9 @@ std::unique_ptr<SceneGraphNode> SceneGraphNode::createFromDictionary(
|
||||
);
|
||||
|
||||
std::unique_ptr<SceneGraphNode> result = std::make_unique<SceneGraphNode>();
|
||||
#ifdef Debugging_Core_SceneGraphNode_Indices
|
||||
result->index = nextIndex++;
|
||||
#endif // Debugging_Core_SceneGraphNode_Indices
|
||||
|
||||
std::string identifier = dictionary.value<std::string>(KeyIdentifier);
|
||||
result->setIdentifier(std::move(identifier));
|
||||
@@ -614,7 +621,7 @@ glm::dvec3 SceneGraphNode::calculateWorldPosition() const {
|
||||
}
|
||||
|
||||
bool SceneGraphNode::isTimeFrameActive(const Time& time) const {
|
||||
for (const auto& dep : _dependencies) {
|
||||
for (SceneGraphNode* dep : _dependencies) {
|
||||
if (!dep->isTimeFrameActive(time)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user