Skip to content

Commit 051bf6b

Browse files
committed
fix build
Signed-off-by: Ian Chen <ichen@openrobotics.org>
1 parent 416c15d commit 051bf6b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/gz/sim/components/Model.hh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ namespace serializers
104104
return _in;
105105
}
106106

107-
// Its super expensive to an sdf::SDFPtr object.
107+
// Its super expensive to create an sdf::SDFPtr object.
108108
// Workaround this by making it a static object so we only initialize it
109109
// once.
110110
// https://github.com/gazebosim/sdformat/issues/1478
@@ -123,6 +123,8 @@ namespace serializers
123123
<< sdf << std::endl;
124124
return _in;
125125
}
126+
sdf::Root root;
127+
root.Load(sdfParsed, config);
126128
if (!root.Model())
127129
{
128130
gzwarn << "Unable to deserialize sdf::Model " << sdf << std::endl;

0 commit comments

Comments
 (0)