We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 416c15d commit 051bf6bCopy full SHA for 051bf6b
include/gz/sim/components/Model.hh
@@ -104,7 +104,7 @@ namespace serializers
104
return _in;
105
}
106
107
- // Its super expensive to an sdf::SDFPtr object.
+ // Its super expensive to create an sdf::SDFPtr object.
108
// Workaround this by making it a static object so we only initialize it
109
// once.
110
// https://github.com/gazebosim/sdformat/issues/1478
@@ -123,6 +123,8 @@ namespace serializers
123
<< sdf << std::endl;
124
125
126
+ sdf::Root root;
127
+ root.Load(sdfParsed, config);
128
if (!root.Model())
129
{
130
gzwarn << "Unable to deserialize sdf::Model " << sdf << std::endl;
0 commit comments