Browse Source

Fixed undo/redo when resizing Views

master
chrisgregan 11 years ago
parent
commit
9ae56f2920
  1. 1
      Assets/Fungus/Editor/ViewEditor.cs

1
Assets/Fungus/Editor/ViewEditor.cs

@ -48,6 +48,7 @@ public class ViewEditor : Editor
Handles.CubeCap); Handles.CubeCap);
if (newPos != handles[i]) if (newPos != handles[i])
{ {
Undo.RecordObject(t, "Changed view size");
t.viewSize = Mathf.Abs(newPos.y - pos.y); t.viewSize = Mathf.Abs(newPos.y - pos.y);
break; break;
} }

Loading…
Cancel
Save