mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 20:50:59 -05:00
Feature/location measure (#1987)
* wip commit for measuring * wip;fixing for codegene change * adding asset file * clean up comments * pr comment cleanup
This commit is contained in:
@@ -110,6 +110,11 @@ GlobeRotation::GlobeRotation(const ghoul::Dictionary& dictionary)
|
||||
const Parameters p = codegen::bake<Parameters>(dictionary);
|
||||
|
||||
_globe = p.globe;
|
||||
_globe.onChange([this]() {
|
||||
findGlobe();
|
||||
setUpdateVariables();
|
||||
});
|
||||
addProperty(_globe);
|
||||
|
||||
_latitude = p.latitude.value_or(_latitude);
|
||||
_latitude.onChange([this]() { setUpdateVariables(); });
|
||||
|
||||
@@ -111,6 +111,11 @@ GlobeTranslation::GlobeTranslation(const ghoul::Dictionary& dictionary)
|
||||
const Parameters p = codegen::bake<Parameters>(dictionary);
|
||||
|
||||
_globe = p.globe;
|
||||
_globe.onChange([this]() {
|
||||
fillAttachedNode();
|
||||
setUpdateVariables();
|
||||
});
|
||||
addProperty(_globe);
|
||||
|
||||
_latitude = p.latitude.value_or(_latitude);
|
||||
_latitude.onChange([this]() { setUpdateVariables(); });
|
||||
|
||||
Reference in New Issue
Block a user