fix:when drawing the node,serialized data choose wrong path because of some refactor operation before

main
taoria 3 years ago
parent c1c75d7613
commit ec0372dd51
  1. 2
      TNodeGraphViewImpl/Editor/Inspector/NodeInspectorInNode.cs

@ -49,7 +49,7 @@ namespace TNodeGraphViewImpl.Editor.Inspector{
var showInNodeViewAttribute = field.GetCustomAttribute<ShowInNode>() != null; var showInNodeViewAttribute = field.GetCustomAttribute<ShowInNode>() != null;
if (!showInNodeViewAttribute) if (!showInNodeViewAttribute)
continue; continue;
var drawer = new PropertyField(serializedObject.FindProperty("model").FindPropertyRelative(field.Name)); var drawer = new PropertyField(serializedObject.FindProperty("data").FindPropertyRelative(field.Name));
drawer.RegisterValueChangeCallback((evt) => { drawer.RegisterValueChangeCallback((evt) => {
serializedObject.Update(); serializedObject.Update();
serializedObject.ApplyModifiedProperties(); serializedObject.ApplyModifiedProperties();

Loading…
Cancel
Save