hot reload only on edited property

This commit is contained in:
Rendo 2025-07-17 21:13:56 +05:00
commit 359b193ddf
2 changed files with 4 additions and 5 deletions

View file

@ -40,9 +40,8 @@ public partial class AdventureEditor : MarginContainer
}
public void OnInspectorPropertyChanged(string property)
{
if (EditorInterface.Singleton.GetInspector().GetEditedObject() is AdventureLevelResource resource)
if (EditorInterface.Singleton.GetInspector().GetEditedObject() is AdventureLevelResource resource && resource.ResourcePath == editedPath)
{
editedPath = resource.ResourcePath;
HardReload();
}
}