summaryrefslogtreecommitdiff
path: root/Library/PackageCache/com.unity.timeline@1.2.13/Editor/Utilities/GUIViewportScope.cs
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-08-20 23:40:50 -0400
committerAndrew Lee <alee14498@protonmail.com>2020-08-20 23:40:50 -0400
commit3af4c218c0e70167db23a6303d2af30aff37d2fe (patch)
tree927f29edcf54ab562f40f3d1c6cb69287c7f5980 /Library/PackageCache/com.unity.timeline@1.2.13/Editor/Utilities/GUIViewportScope.cs
parentb6daed0af784f4e9bc13329dd87c671b06ee1c65 (diff)
downloadProject-Sandbox-3af4c218c0e70167db23a6303d2af30aff37d2fe.tar.gz
Project-Sandbox-3af4c218c0e70167db23a6303d2af30aff37d2fe.tar.bz2
Project-Sandbox-3af4c218c0e70167db23a6303d2af30aff37d2fe.zip
Removed a bunch of stuff; Changes
Diffstat (limited to 'Library/PackageCache/com.unity.timeline@1.2.13/Editor/Utilities/GUIViewportScope.cs')
-rw-r--r--Library/PackageCache/com.unity.timeline@1.2.13/Editor/Utilities/GUIViewportScope.cs34
1 files changed, 0 insertions, 34 deletions
diff --git a/Library/PackageCache/com.unity.timeline@1.2.13/Editor/Utilities/GUIViewportScope.cs b/Library/PackageCache/com.unity.timeline@1.2.13/Editor/Utilities/GUIViewportScope.cs
deleted file mode 100644
index 7999ffd..0000000
--- a/Library/PackageCache/com.unity.timeline@1.2.13/Editor/Utilities/GUIViewportScope.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-using UnityEngine;
-
-namespace UnityEditor
-{
- // Special Clip Scope that only effects painting, and keeps the coordinate system identical
- struct GUIViewportScope : IDisposable
- {
- bool m_open;
- public GUIViewportScope(Rect position)
- {
- m_open = false;
- if (Event.current.type == EventType.Repaint || Event.current.type == EventType.Layout)
- {
- GUI.BeginClip(position, -position.min, Vector2.zero, false);
- m_open = true;
- }
- }
-
- public void Dispose()
- {
- CloseScope();
- }
-
- void CloseScope()
- {
- if (m_open)
- {
- GUI.EndClip();
- m_open = false;
- }
- }
- }
-}