From e19f0042caddb7d0ceb260e9ba9f5e5ee08a9f44 Mon Sep 17 00:00:00 2001 From: tamas Date: Thu, 25 Jan 2024 11:01:56 -0600 Subject: Retain meta data set on imported nodes During the import process, many importer nodes are replaced with their engine node counterparts. For example, ImporterMeshInstance3D is replaced with a MeshInstance3D node. Any meta data set on these importer nodes, i.e. through a GLTFDocumentExtension, are lost during the conversion. This change copies over any meta data set on these importer nodes to their engine counterparts. --- editor/import/3d/resource_importer_scene.h | 1 + 1 file changed, 1 insertion(+) (limited to 'editor/import/3d/resource_importer_scene.h') diff --git a/editor/import/3d/resource_importer_scene.h b/editor/import/3d/resource_importer_scene.h index bbf2d20163..cd6a725231 100644 --- a/editor/import/3d/resource_importer_scene.h +++ b/editor/import/3d/resource_importer_scene.h @@ -219,6 +219,7 @@ class ResourceImporterScene : public ResourceImporter { void _replace_owner(Node *p_node, Node *p_scene, Node *p_new_owner); Node *_generate_meshes(Node *p_node, const Dictionary &p_mesh_data, bool p_generate_lods, bool p_create_shadow_meshes, LightBakeMode p_light_bake_mode, float p_lightmap_texel_size, const Vector &p_src_lightmap_cache, Vector> &r_lightmap_caches); void _add_shapes(Node *p_node, const Vector> &p_shapes); + void _copy_meta(Object *p_src_object, Object *p_dst_object); enum AnimationImportTracks { ANIMATION_IMPORT_TRACKS_IF_PRESENT, -- cgit v1.2.3