mirror of
https://github.com/BlackMATov/unity-flash-tools.git
synced 2025-12-14 04:02:12 +07:00
Fix possible mesh leak after scene switch
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
###### Version 1.3.11
|
||||
* Fix trial version in Unity 2017
|
||||
* Fix warnings in Unity 2017
|
||||
* Fix possible mesh leak after scene switch
|
||||
|
||||
###### Version 1.3.10
|
||||
* Fix (conversion error: 'Error: scaleSelection: Argument number 1 is invalid.')
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace FTRuntime {
|
||||
get {
|
||||
if ( !_cachedMesh ) {
|
||||
_cachedMesh = new Mesh();
|
||||
_cachedMesh.hideFlags = HideFlags.DontSave;
|
||||
_cachedMesh.hideFlags = HideFlags.DontSaveInBuild | HideFlags.DontSaveInEditor;
|
||||
SwfUtils.FillGeneratedMesh(_cachedMesh, MeshData);
|
||||
}
|
||||
return _cachedMesh;
|
||||
|
||||
Reference in New Issue
Block a user