diff options
author | tamas <tamas@xndu.net> | 2024-01-25 11:01:56 -0600 |
---|---|---|
committer | tamas <tamas@xndu.net> | 2024-06-18 12:39:34 -0500 |
commit | e19f0042caddb7d0ceb260e9ba9f5e5ee08a9f44 (patch) | |
tree | aee8a963d58a649c19d6fa3898031fd6b9404d79 /editor/import/3d/resource_importer_scene.h | |
parent | 0a83e7c5dac550afb26e26684cbb6e4d6c139f5e (diff) | |
download | redot-engine-e19f0042caddb7d0ceb260e9ba9f5e5ee08a9f44.tar.gz |
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.
Diffstat (limited to 'editor/import/3d/resource_importer_scene.h')
-rw-r--r-- | editor/import/3d/resource_importer_scene.h | 1 |
1 files changed, 1 insertions, 0 deletions
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<uint8_t> &p_src_lightmap_cache, Vector<Vector<uint8_t>> &r_lightmap_caches); void _add_shapes(Node *p_node, const Vector<Ref<Shape3D>> &p_shapes); + void _copy_meta(Object *p_src_object, Object *p_dst_object); enum AnimationImportTracks { ANIMATION_IMPORT_TRACKS_IF_PRESENT, |