mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 19:19:39 -06:00
Added missing change for the merge
This commit is contained in:
@@ -173,10 +173,7 @@ void InteractionHandler::distance(const PowerScaledScalar &distance) {
|
||||
lockControls();
|
||||
|
||||
psc relative = camera_->position();
|
||||
psc origin;
|
||||
if(node_) {
|
||||
origin = node_->worldPosition();
|
||||
}
|
||||
const psc origin = (node_) ? node_->worldPosition() : psc();
|
||||
|
||||
psc relative_origin_coordinate = relative - origin;
|
||||
const glm::vec3 dir(relative_origin_coordinate.direction());
|
||||
|
||||
Reference in New Issue
Block a user