Skip to content

Commit f09bc95

Browse files
Merge branch 'bugfixes/schoen/undo-patch' of https://github.com/Unity-Technologies/EditorVR into features/jono/undo-redo-flick
# Conflicts: # Scripts/Core/EditorVR.cs
2 parents 9e0fa05 + b998b4e commit f09bc95

4 files changed

Lines changed: 30 additions & 0 deletions

File tree

Scripts/Core/EditorVR.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
using UnityEngine.InputNew;
1313

1414
[assembly: OptionalDependency("PolyToolkit.PolyApi", "INCLUDE_POLY_TOOLKIT")]
15+
[assembly: OptionalDependency("UnityEngine.DrivenRectTransformTracker+BlockUndoCCU", "UNDO_PATCH")]
1516

1617
namespace UnityEditor.Experimental.EditorVR.Core
1718
{
@@ -127,6 +128,9 @@ static void HandleInitialization()
127128

128129
void Awake()
129130
{
131+
#if UNDO_PATCH
132+
DrivenRectTransformTracker.BlockUndo = true;
133+
#endif
130134
s_Instance = this; // Used only by PreferencesGUI
131135
Nested.evr = this; // Set this once for the convenience of all nested classes
132136
m_DefaultTools = defaultTools;
@@ -347,6 +351,10 @@ void OnDestroy()
347351
{
348352
nested.OnDestroy();
349353
}
354+
355+
#if UNDO_PATCH
356+
DrivenRectTransformTracker.BlockUndo = false;
357+
#endif
350358
}
351359

352360
void Update()

UndoPatch.meta

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:263509d40ec2fe536344bfaf6e74c421d384466634e67e6b46039f96931a5834
3+
size 248879

UndoPatch/UnityEngine.CoreModule_2017.2.0p1.zip.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)