diff --git a/source/blender/editors/interface/interface.cc b/source/blender/editors/interface/interface.cc index c5efcfab1c8..a532b6633df 100644 --- a/source/blender/editors/interface/interface.cc +++ b/source/blender/editors/interface/interface.cc @@ -1439,11 +1439,7 @@ static std::optional ui_but_event_property_operator_string(const bC } /* We have a data-path! */ - bool found = false; - - for (int data_path_index = 0; data_path_index < data_path_variations.size() && (found == false); - data_path_index++) - { + for (int data_path_index = 0; data_path_index < data_path_variations.size(); data_path_index++) { const StringRefNull data_path = data_path_variations[data_path_index]; if (!data_path.is_empty() || (prop_enum_value_ok && prop_enum_value_id)) { /* Create a property to host the "data_path" property we're sending to the operators. */