You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Use C++ iterators for Lists in many situations
This commit is contained in:
@@ -90,8 +90,8 @@ void MeshInstance3DEditor::_menu_option(int p_option) {
|
||||
|
||||
ur->create_action(TTR("Create Static Trimesh Body"));
|
||||
|
||||
for (List<Node *>::Element *E = selection.front(); E; E = E->next()) {
|
||||
MeshInstance3D *instance = Object::cast_to<MeshInstance3D>(E->get());
|
||||
for (Node *E : selection) {
|
||||
MeshInstance3D *instance = Object::cast_to<MeshInstance3D>(E);
|
||||
if (!instance) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user