Skip to content

Commit 7613123

Browse files
committed
fixes the lods array returned by mesh_get_surface
1 parent 60710df commit 7613123

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)