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 20, 2024
1 parent 1cba71d commit f8f23f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/systems/user_commands/UserCommands.cc
Original file line number Diff line number Diff line change
Expand Up @@ -978,10 +978,10 @@ void UserCommandsPrivate::OnCmdMaterialColor(const msgs::MaterialColor &_msg)
<< std::endl;
return;
}
for (const Entity &id: entities)
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 f8f23f9

Please sign in to comment.