Skip to content

Commit b4127bc

Browse files
committed
VS build fix
1 parent 95bec47 commit b4127bc

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

include/vsg/nodes/CoordinateFrame.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ namespace vsg
2828
dvec3 origin;
2929
dquat rotation;
3030

31+
ldvec3 temp_ldvec3;
32+
3133
dmat4 transform(const dmat4& mv) const override;
3234

3335
public:

src/vsg/maths/common.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
1212
</editor-fold> */
1313

1414
#include <vsg/maths/common.h>
15+
#include <vsg/io/Options.h>
1516

1617
#include <float.h>
1718

src/vsg/nodes/CoordinateFrame.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ CoordinateFrame::CoordinateFrame(const CoordinateFrame& rhs, const CopyOp& copyo
2525
Inherit(rhs, copyop),
2626
name(rhs.name),
2727
origin(rhs.origin),
28-
rotation(rhs.rotation)
28+
rotation(rhs.rotation),
29+
temp_ldvec3(rhs.temp_ldvec3)
2930
{
3031
}
3132

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

@@ -46,6 +48,7 @@ void CoordinateFrame::read(Input& input)
4648
input.read("name", name);
4749
input.read("origin", origin);
4850
input.read("rotation", rotation);
51+
input.read("temp_ldvec3" , temp_ldvec3);
4952
input.read("subgraphRequiresLocalFrustum", subgraphRequiresLocalFrustum);
5053
input.readObjects("children", children);
5154
}
@@ -56,6 +59,7 @@ void CoordinateFrame::write(Output& output) const
5659
output.write("name", name);
5760
output.write("origin", origin);
5861
output.write("rotation", rotation);
62+
output.write("temp_ldvec3" , temp_ldvec3);
5963
output.write("subgraphRequiresLocalFrustum", subgraphRequiresLocalFrustum);
6064
output.writeObjects("children", children);
6165
}

0 commit comments

Comments
 (0)