godotengine / godot

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

changing the mesh in a meshinstance in a remote scene makes it empty #97083

Open rubberduck9999 opened 1 week ago

rubberduck9999 commented 1 week ago

Tested versions

4.2.2 stable, 4.3 stable

System information

Windows 10

Issue description

Trying to change the mesh in a mesh instance while the game is running from the remote tab, removes the mesh / resets its state to empty in the game. Setting it in the 'local' tab works as expected.

I wanted to test a different mesh at runtime, in my original project the scene was instanced by code and expected that the remote changed mesh would be the mesh that I selected (at least in the game window, and back no normal on the next start)

https://github.com/user-attachments/assets/ee260b4c-db64-4f0d-bd49-c7d359b327e4

Steps to reproduce

try to change the mesh in the mesh instance when remote debugging, it could even be the same obj as already in there

Minimal reproduction project (MRP)

Originally experienced with my current game project in godot 4.2.2 stable, tried then with 4.3 stable and finally with a brand new project

AThousandShips commented 1 week ago

Please upload an MRP to make this easier to reliably confirm and test

Can confirm this but would be good if you could upload an MRP to make this easier with the setup (can do so later if needed but would be best if you do)

The following error is printed when this occurs:

ERROR: Resource file not found: res://node_3d_vox.tscn::CapsuleMesh_2k3ea (expected type: )
   at: (core/io/resource_loader.cpp:315)

The case being specific to my mini project

rubberduck9999 commented 1 week ago

ok, here remotemeshreplace.zip