mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-22 12:59:07 -06:00
Always add transformation property owners, even if the defaults are not overwritten
This commit is contained in:
@@ -123,11 +123,13 @@ std::unique_ptr<SceneGraphNode> SceneGraphNode::createFromDictionary(
|
||||
));
|
||||
return nullptr;
|
||||
}
|
||||
result->addPropertySubOwner(result->_transform.translation.get());
|
||||
LDEBUG(fmt::format(
|
||||
"Successfully created ephemeris for '{}'", result->identifier()
|
||||
));
|
||||
}
|
||||
if (result->_transform.translation) {
|
||||
result->addPropertySubOwner(result->_transform.translation.get());
|
||||
}
|
||||
|
||||
if (dictionary.hasKey(KeyTransformRotation)) {
|
||||
ghoul::Dictionary rotationDictionary;
|
||||
@@ -139,11 +141,13 @@ std::unique_ptr<SceneGraphNode> SceneGraphNode::createFromDictionary(
|
||||
));
|
||||
return nullptr;
|
||||
}
|
||||
result->addPropertySubOwner(result->_transform.rotation.get());
|
||||
LDEBUG(fmt::format(
|
||||
"Successfully created rotation for '{}'", result->identifier()
|
||||
));
|
||||
}
|
||||
if (result->_transform.rotation) {
|
||||
result->addPropertySubOwner(result->_transform.rotation.get());
|
||||
}
|
||||
|
||||
if (dictionary.hasKey(KeyTransformScale)) {
|
||||
ghoul::Dictionary scaleDictionary;
|
||||
@@ -155,9 +159,11 @@ std::unique_ptr<SceneGraphNode> SceneGraphNode::createFromDictionary(
|
||||
));
|
||||
return nullptr;
|
||||
}
|
||||
result->addPropertySubOwner(result->_transform.scale.get());
|
||||
LDEBUG(fmt::format("Successfully created scale for '{}'", result->identifier()));
|
||||
}
|
||||
if (result->_transform.scale) {
|
||||
result->addPropertySubOwner(result->_transform.scale.get());
|
||||
}
|
||||
|
||||
if (dictionary.hasKey(KeyTimeFrame)) {
|
||||
ghoul::Dictionary timeFrameDictionary;
|
||||
|
||||
Reference in New Issue
Block a user