Merge pull request #56043 from Zylann/mesh_old_conversion_message

This commit is contained in:
Rémi Verschelde 2021-12-21 15:23:57 +01:00 committed by GitHub
commit 489f11ee0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -898,7 +898,9 @@ bool ArrayMesh::_set(const StringName &p_name, const Variant &p_value) {
return false;
}
WARN_DEPRECATED_MSG("Mesh uses old surface format, which is deprecated (and loads slower). Consider re-importing or re-saving the scene.");
WARN_DEPRECATED_MSG(vformat(
"Mesh uses old surface format, which is deprecated (and loads slower). Consider re-importing or re-saving the scene. Path: \"%s\"",
get_path()));
int idx = sname.get_slicec('/', 1).to_int();
String what = sname.get_slicec('/', 2);