Skip to content

Commit b1d607c

Browse files
authored
Update GetVideoAspectRatioEditor.cs
add undo to GetVideoAspectRatioEditor.cs
1 parent adda230 commit b1d607c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Assets/Scripts/Editor/ContextMenu/GetVideoAspectRatioEditor.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ static void DoubleMass(MenuCommand command)
2121
}
2222
float aspectRatioY = v.height / (float)v.width;
2323

24+
// record undo
25+
Undo.RecordObject(v.transform, "Set scale");
26+
2427
// scale mesh
2528
Vector3 scale = v.transform.localScale;
2629
// fix only height

0 commit comments

Comments
 (0)