hot reload only on edited property
This commit is contained in:
parent
5680ecc17e
commit
359b193ddf
2 changed files with 4 additions and 5 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue