From 830b54a03b480f29e60b4ebc813c1e24ac140a70 Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Sat, 18 Dec 2021 03:43:57 +0000 Subject: [PATCH] Added resource path to message about old mesh format conversion --- scene/resources/mesh.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scene/resources/mesh.cpp b/scene/resources/mesh.cpp index bd63d17424a..661016d148d 100644 --- a/scene/resources/mesh.cpp +++ b/scene/resources/mesh.cpp @@ -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);