Skip to content

Commit

Permalink
Ran clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
robertosfield committed Dec 16, 2024
1 parent 7a3ac31 commit e951e22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/vsg/animation/CameraSampler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,9 @@ void CameraSampler::update(double time)
sample(time, keyframes->fieldOfViews, fieldOfView);
sample(time, keyframes->nearFars, nearFar);

auto find_values = [](const RefObjectPath& path, dvec3& in_origin, dvec3& in_position, dquat& in_rotation) -> void
{
auto find_values = [](const RefObjectPath& path, dvec3& in_origin, dvec3& in_position, dquat& in_rotation) -> void {
ComputeTransform ct;
for(auto& obj : path) obj->accept(ct);
for (auto& obj : path) obj->accept(ct);

in_origin = ct.origin;

Expand Down Expand Up @@ -283,7 +282,7 @@ void CameraSampler::apply(LookAt& lookAt)
{
bool has_tracking = !keyframes->tracking.empty();
if (!keyframes->origins.empty() || has_tracking) lookAt.origin = origin;
if (!keyframes->positions.empty() || !keyframes->rotations.empty() || has_tracking)
if (!keyframes->positions.empty() || !keyframes->rotations.empty() || has_tracking)
{
lookAt.set(transform());
}
Expand Down
2 changes: 1 addition & 1 deletion src/vsg/maths/maths_transform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
#include <vsg/app/Camera.h>
#include <vsg/io/Options.h>
#include <vsg/maths/transform.h>
#include <vsg/nodes/MatrixTransform.h>
#include <vsg/nodes/CoordinateFrame.h>
#include <vsg/nodes/MatrixTransform.h>

using namespace vsg;

Expand Down

0 comments on commit e951e22

Please sign in to comment.