From f83c0ea3128d4951f662d70b6b283785bae67437 Mon Sep 17 00:00:00 2001 From: Benjamin Perseghetti Date: Wed, 17 Jan 2024 16:28:40 -0500 Subject: [PATCH] Update MaterialCommand to use EntityMatch. Signed-off-by: Benjamin Perseghetti --- src/systems/user_commands/UserCommands.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/systems/user_commands/UserCommands.cc b/src/systems/user_commands/UserCommands.cc index ec9d6a4a91a..04ec20d6532 100644 --- a/src/systems/user_commands/UserCommands.cc +++ b/src/systems/user_commands/UserCommands.cc @@ -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; }