Skip to content

Commit

Permalink
VS build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
robertosfield committed Nov 26, 2024
1 parent 95bec47 commit b4127bc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions include/vsg/nodes/CoordinateFrame.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ namespace vsg
dvec3 origin;
dquat rotation;

ldvec3 temp_ldvec3;

dmat4 transform(const dmat4& mv) const override;

public:
Expand Down
1 change: 1 addition & 0 deletions src/vsg/maths/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
</editor-fold> */

#include <vsg/maths/common.h>
#include <vsg/io/Options.h>

#include <float.h>

Expand Down
6 changes: 5 additions & 1 deletion src/vsg/nodes/CoordinateFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ CoordinateFrame::CoordinateFrame(const CoordinateFrame& rhs, const CopyOp& copyo
Inherit(rhs, copyop),
name(rhs.name),
origin(rhs.origin),
rotation(rhs.rotation)
rotation(rhs.rotation),
temp_ldvec3(rhs.temp_ldvec3)
{
}

Expand All @@ -37,6 +38,7 @@ int CoordinateFrame::compare(const Object& rhs_object) const
const auto& rhs = static_cast<decltype(*this)>(rhs_object);
if ((result = compare_value(name, rhs.name)) != 0) return result;
if ((result = compare_value(origin, rhs.origin)) != 0) return result;
if ((result = compare_value(temp_ldvec3, rhs.temp_ldvec3)) != 0) return result;
return compare_value(rotation, rhs.rotation);
}

Expand All @@ -46,6 +48,7 @@ void CoordinateFrame::read(Input& input)
input.read("name", name);
input.read("origin", origin);
input.read("rotation", rotation);
input.read("temp_ldvec3" , temp_ldvec3);
input.read("subgraphRequiresLocalFrustum", subgraphRequiresLocalFrustum);
input.readObjects("children", children);
}
Expand All @@ -56,6 +59,7 @@ void CoordinateFrame::write(Output& output) const
output.write("name", name);
output.write("origin", origin);
output.write("rotation", rotation);
output.write("temp_ldvec3" , temp_ldvec3);
output.write("subgraphRequiresLocalFrustum", subgraphRequiresLocalFrustum);
output.writeObjects("children", children);
}
Expand Down

0 comments on commit b4127bc

Please sign in to comment.