You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Store ArrayMesh path in RenderingServer for use in error messages
This commit is contained in:
@@ -1558,6 +1558,7 @@ void ArrayMesh::_create_if_empty() const {
|
||||
mesh = RS::get_singleton()->mesh_create();
|
||||
RS::get_singleton()->mesh_set_blend_shape_mode(mesh, (RS::BlendShapeMode)blend_shape_mode);
|
||||
RS::get_singleton()->mesh_set_blend_shape_count(mesh, blend_shapes.size());
|
||||
RS::get_singleton()->mesh_set_path(mesh, get_path());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1666,6 +1667,7 @@ void ArrayMesh::_set_surfaces(const Array &p_surfaces) {
|
||||
// we can create it with a single call, which is a lot more efficient and thread friendly
|
||||
mesh = RS::get_singleton()->mesh_create_from_surfaces(surface_data, blend_shapes.size());
|
||||
RS::get_singleton()->mesh_set_blend_shape_mode(mesh, (RS::BlendShapeMode)blend_shape_mode);
|
||||
RS::get_singleton()->mesh_set_path(mesh, get_path());
|
||||
}
|
||||
|
||||
surfaces.clear();
|
||||
|
||||
Reference in New Issue
Block a user