From 13a00bdbd626ef6c1c2739e7fe804f92f4d4881e Mon Sep 17 00:00:00 2001 From: Rory Dungan Date: Fri, 16 Jun 2017 15:03:56 +1000 Subject: [PATCH] Fixed issue where SubViewModelBinding wouldn't show when value changed --- UnityWeld_Editor/SubViewModelBindingEditor.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UnityWeld_Editor/SubViewModelBindingEditor.cs b/UnityWeld_Editor/SubViewModelBindingEditor.cs index 398661b..7d067d1 100644 --- a/UnityWeld_Editor/SubViewModelBindingEditor.cs +++ b/UnityWeld_Editor/SubViewModelBindingEditor.cs @@ -72,6 +72,8 @@ private void UpdatePrefabModifiedProperties() var property = serializedObject.GetIterator(); // Need to call Next(true) to get the first child. Once we have it, Next(false) // will iterate through the properties. + + propertyPrefabModified = false; property.Next(true); do { @@ -79,7 +81,7 @@ private void UpdatePrefabModifiedProperties() { case "viewModelPropertyName": case "viewModelTypeName": - propertyPrefabModified = property.prefabOverride; + propertyPrefabModified = property.prefabOverride || propertyPrefabModified; break; } }