Skip to content

Commit

Permalink
Fix VoxelInstanceLibrary.find_item_by_name was not finding items
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylann committed Apr 27, 2023
1 parent 64a77d6 commit 46c9e14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terrain/instancing/voxel_instance_library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ int VoxelInstanceLibrary::find_item_by_name(String name) const {
for (auto it = _items.begin(); it != _items.end(); ++it) {
const Ref<VoxelInstanceLibraryItem> &item = it->second;
ERR_FAIL_COND_V(item.is_null(), -1);
if (item->get_name() == name) {
if (item->get_item_name() == name) {
return it->first;
}
}
Expand Down

0 comments on commit 46c9e14

Please sign in to comment.