Skip to content

Commit fc985d7

Browse files
committed
Merge pull request godotengine#111745 from benbot/benbot/seems-wrong
Fix the LODs array returned by `mesh_get_surface`
2 parents d5942cf + 7613123 commit fc985d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

servers/rendering/rendering_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2034,7 +2034,7 @@ Dictionary RenderingServer::_mesh_get_surface(RID p_mesh, int p_idx) {
20342034
Dictionary ld;
20352035
ld["edge_length"] = sd.lods[i].edge_length;
20362036
ld["index_data"] = sd.lods[i].index_data;
2037-
lods.push_back(lods);
2037+
lods.push_back(ld);
20382038
}
20392039
d["lods"] = lods;
20402040
}

0 commit comments

Comments
 (0)