From 9ae56f29203305a3f1b0646ba899e3ffe65ff1f5 Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Thu, 26 Jun 2014 14:03:48 +0100 Subject: [PATCH] Fixed undo/redo when resizing Views --- Assets/Fungus/Editor/ViewEditor.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/Fungus/Editor/ViewEditor.cs b/Assets/Fungus/Editor/ViewEditor.cs index 96aa2ed1..b13f4f1f 100644 --- a/Assets/Fungus/Editor/ViewEditor.cs +++ b/Assets/Fungus/Editor/ViewEditor.cs @@ -48,6 +48,7 @@ public class ViewEditor : Editor Handles.CubeCap); if (newPos != handles[i]) { + Undo.RecordObject(t, "Changed view size"); t.viewSize = Mathf.Abs(newPos.y - pos.y); break; }