Skip to content

Commit

Permalink
Update MaterialCommand to use EntityMatch.
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Perseghetti <[email protected]>
  • Loading branch information
bperseghetti committed Jan 17, 2024
1 parent fc67f1d commit f83c0ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/systems/user_commands/UserCommands.cc
Original file line number Diff line number Diff line change
Expand Up @@ -980,8 +980,8 @@ void UserCommandsPrivate::OnCmdMaterialColor(const msgs::MaterialColor &_msg)
}
for (const Entity &id: entities)
{
if ((numberOfEntities > 0) && (_msg.apply() !=
gz::msgs::MaterialColor::Apply::MaterialColor_Apply_ALL))
if ((numberOfEntities > 0) && (_msg.entity_match() !=
gz::msgs::MaterialColor::EntityMatch::MaterialColor_EntityMatch_ALL))
{
break;
}
Expand Down

0 comments on commit f83c0ea

Please sign in to comment.