Skip to content

Commit

Permalink
Fixed issue where SubViewModelBinding wouldn't show when value changed
Browse files Browse the repository at this point in the history
  • Loading branch information
RoryDungan committed Jun 16, 2017
1 parent aa44c13 commit 13a00bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion UnityWeld_Editor/SubViewModelBindingEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,16 @@ 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
{
switch (property.name)
{
case "viewModelPropertyName":
case "viewModelTypeName":
propertyPrefabModified = property.prefabOverride;
propertyPrefabModified = property.prefabOverride || propertyPrefabModified;
break;
}
}
Expand Down

0 comments on commit 13a00bd

Please sign in to comment.