Use C++ iterators for Lists in many situations
This commit is contained in:
@@ -278,8 +278,8 @@ void ShaderMaterial::get_argument_options(const StringName &p_function, int p_id
|
||||
if (shader.is_valid()) {
|
||||
List<PropertyInfo> pl;
|
||||
shader->get_param_list(&pl);
|
||||
for (List<PropertyInfo>::Element *E = pl.front(); E; E = E->next()) {
|
||||
r_options->push_back(quote_style + E->get().name.replace_first("shader_param/", "") + quote_style);
|
||||
for (PropertyInfo &E : pl) {
|
||||
r_options->push_back(quote_style + E.name.replace_first("shader_param/", "") + quote_style);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user