Fix: preview in Unity 2021

This commit is contained in:
BlackMATov
2021-06-06 04:11:09 +07:00
parent 9ec4ddf140
commit 6edba87037
2 changed files with 4 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
###### Version 1.3.18 ###### Version 1.3.18
* Fix frameCount working before Start * Fix frameCount working before Start
* Fix preview in Unity 2021
###### Version 1.3.17 ###### Version 1.3.17
* Fix 2019 warnings * Fix 2019 warnings

View File

@@ -135,6 +135,9 @@ namespace FTEditor.Editors {
public void Shutdown() { public void Shutdown() {
_matPropBlock.Clear(); _matPropBlock.Clear();
_previewUtils.Cleanup(); _previewUtils.Cleanup();
#if UNITY_2021_1_OR_NEWER
Cleanup();
#endif
} }
// --------------------------------------------------------------------- // ---------------------------------------------------------------------