Skip to content

Commit

Permalink
Set visible=true in header
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiju Yamada committed Apr 30, 2024
1 parent 202d39e commit 9468950
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/mujincontrollerclient/mujincontrollerclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ class MUJINCLIENT_API ObjectResource : public WebResource
std::string geomtype;
Real quaternion[4]; // quaternion [w, x, y, z] = [cos(angle/2), sin(angle/2)*rotation_axis]
Real translate[3];
bool visible;
bool visible = true;
Real diffusecolor[4];
Real transparency;
Real half_extents[3];
Expand Down
2 changes: 1 addition & 1 deletion src/mujincontrollerclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ void ObjectResource::LinkResource::GetGeometries(std::vector<ObjectResource::Geo
ObjectResource::GeometryResourcePtr geometry(new GeometryResource(controller, this->objectpk, GetJsonValueByKey<std::string>(*it, "pk")));
geometry->linkpk = linkpk;
LoadJsonValueByKey(*it,"name",geometry->name,geometry->pk);
LoadJsonValueByKey(*it,"visible",geometry->visible,true);
LoadJsonValueByKey(*it,"visible",geometry->visible);
LoadJsonValueByKey(*it,"geomtype",geometry->geomtype);
LoadJsonValueByKey(*it,"transparency",geometry->transparency);
LoadJsonValueByKey(*it,"quaternion",geometry->quaternion);
Expand Down

0 comments on commit 9468950

Please sign in to comment.