godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.45k stars 20.25k forks source link

Scene loses reference to the instanced scene when you reimport mesh which is present in instanced scene #81776

Open RomanZhu opened 1 year ago

RomanZhu commented 1 year ago

Godot version

v4.1.1.stable.official [bd6af8e0e]

System information

Godot v4.1.1.stable - Windows 10.0.19044 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3090 (NVIDIA; 31.0.15.3623) - AMD Ryzen 9 5950X 16-Core Processor (32 Threads)

Issue description

Scene loses reference to the instanced scene when you reimport mesh which is present in instanced scene

Steps to reproduce

https://github.com/godotengine/godot/assets/12017366/b1d78ebe-a386-4d60-a811-4d6b0afff535

  1. Have 3 scenes that are instanced inside each other (scene, instanced_scene, torch), in the deepest one contains a mesh
  2. Open scene, instanced_scene, torch scenes
  3. Save scene, instanced_scene, torch scenes
  4. Close instanced_scene, torch
  5. Reimport said mesh
  6. Open instanced_scene
  7. See that there is no Open in Editor button
  8. Move some other object in this scene
  9. Save the scene
  10. You can't see the mesh in the scene and instanced_scene anymore

Minimal reproduction project

BrokenScene.zip

bitsawer commented 1 year ago

I can confirm this in current master branch. There might have been pretty similar / duplicate bug report somewhere, but I can't find it right now.

lyuma commented 9 months ago

I am unable to reproduce this in Godot 4.2

@SaracenOne, do you know if you made a fix to this in 4.2? what pr might it be?