summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorJoan Fons <joan.fonssanchez@gmail.com>2021-10-06 11:53:53 +0200
committerJoan Fons <joan.fonssanchez@gmail.com>2021-10-09 20:31:28 +0200
commit8ab7ca4b32952ee3328fadf02c3b25bb647c466c (patch)
treeeffef1cbd35e774dcd41478c12f53ace6ef1d351 /servers
parentdf376750ce7c861194c203225fd63462b7f29025 (diff)
Fix auto LOD generation for blendshapes.
Diffstat (limited to 'servers')
-rw-r--r--servers/rendering_server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering_server.cpp b/servers/rendering_server.cpp
index 7e66ddbb0f..b3efe840b6 100644
--- a/servers/rendering_server.cpp
+++ b/servers/rendering_server.cpp
@@ -934,7 +934,7 @@ Error RenderingServer::mesh_create_surface_data_from_arrays(SurfaceData *r_surfa
}
}
- ERR_FAIL_COND_V_MSG((bsformat) != (format & (ARRAY_FORMAT_VERTEX | ARRAY_FORMAT_NORMAL | ARRAY_FORMAT_TANGENT)), ERR_INVALID_PARAMETER, "Blend shape format must match the main array format for Vertex, Normal and Tangent arrays.");
+ ERR_FAIL_COND_V_MSG((bsformat & RS::ARRAY_FORMAT_BLEND_SHAPE_MASK) != (format & RS::ARRAY_FORMAT_BLEND_SHAPE_MASK), ERR_INVALID_PARAMETER, "Blend shape format must match the main array format for Vertex, Normal and Tangent arrays.");
}
}