Skip to content

Commit

Permalink
Removed unused variable, fixed CI error.
Browse files Browse the repository at this point in the history
  • Loading branch information
drwhut committed Sep 29, 2023
1 parent 5268128 commit d9d105f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions editor/import/resource_importer_scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1151,14 +1151,12 @@ void ResourceImporterScene::_replace_owner(Node *p_node, Node *p_scene, Node *p_
}

void ResourceImporterScene::_add_shapes(Node *p_node, const List<Ref<Shape>> &p_shapes) {
int idx = 0;
for (const List<Ref<Shape>>::Element *E = p_shapes.front(); E; E = E->next()) {
CollisionShape *cshape = memnew(CollisionShape);
cshape->set_shape(E->get());
p_node->add_child(cshape);

cshape->set_owner(p_node->get_owner());
idx++;
}
}

Expand Down

0 comments on commit d9d105f

Please sign in to comment.