|
@@ -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();
|