mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Address Android editor crashes
- Add workaround for crash when resuming existing project
This commit is contained in:
@@ -189,6 +189,7 @@ Ref<TriangleMesh> Mesh::generate_triangle_mesh() const {
|
|||||||
if (primitive == PRIMITIVE_TRIANGLES) {
|
if (primitive == PRIMITIVE_TRIANGLES) {
|
||||||
for (int j = 0; j < ic; j++) {
|
for (int j = 0; j < ic; j++) {
|
||||||
int index = ir[j];
|
int index = ir[j];
|
||||||
|
ERR_FAIL_COND_V(index >= vc, Ref<TriangleMesh>());
|
||||||
facesw[widx++] = vr[index];
|
facesw[widx++] = vr[index];
|
||||||
}
|
}
|
||||||
} else { // PRIMITIVE_TRIANGLE_STRIP
|
} else { // PRIMITIVE_TRIANGLE_STRIP
|
||||||
|
|||||||
Reference in New Issue
Block a user