Compare commits
3 Commits
versions/1
...
versions/1
| Author | SHA1 | Date | |
|---|---|---|---|
| cbc8bbd20f | |||
| 0a2a0de800 | |||
| 9217dee8c2 |
1
.gitignore
vendored
@@ -2,6 +2,7 @@ obj/*
|
||||
Temp/*
|
||||
Library/*
|
||||
|
||||
.vs/*
|
||||
FTSources/.vs/*
|
||||
FTSources/FTEditor/obj/*
|
||||
FTSources/FTRuntime/obj/*
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
###### Version 1.3.13
|
||||
* Fix preview shutdown warning
|
||||
|
||||
###### Version 1.3.12
|
||||
* Upgrade to minimal LTS version
|
||||
* Fix anchor frame label detector
|
||||
|
||||
@@ -8,9 +8,9 @@ using FTRuntime;
|
||||
namespace FTEditor.Editors {
|
||||
[CustomPreview(typeof(SwfClipAsset))]
|
||||
class SwfClipAssetPreview : ObjectPreview {
|
||||
int _sequence = 0;
|
||||
static MaterialPropertyBlock _matPropBlock = null;
|
||||
static PreviewRenderUtility _previewUtils = null;
|
||||
int _sequence = 0;
|
||||
MaterialPropertyBlock _matPropBlock = null;
|
||||
PreviewRenderUtility _previewUtils = null;
|
||||
|
||||
Sprite targetSprite {
|
||||
get {
|
||||
@@ -142,6 +142,11 @@ namespace FTEditor.Editors {
|
||||
: 0;
|
||||
}
|
||||
|
||||
public void Shutdown() {
|
||||
_matPropBlock.Clear();
|
||||
_previewUtils.Cleanup();
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
//
|
||||
// Messages
|
||||
|
||||
@@ -131,7 +131,7 @@ namespace FTEditor.Editors {
|
||||
}
|
||||
|
||||
void SetupPreviews() {
|
||||
_previews.Clear();
|
||||
ShutdownPreviews();
|
||||
foreach ( var clip in _clips.Where(p => !!p.clip) ) {
|
||||
var preview = new SwfClipAssetPreview();
|
||||
preview.Initialize(new Object[]{clip.clip});
|
||||
@@ -139,18 +139,29 @@ namespace FTEditor.Editors {
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
//
|
||||
// Messages
|
||||
//
|
||||
// ---------------------------------------------------------------------
|
||||
void ShutdownPreviews() {
|
||||
foreach ( var p in _previews ) {
|
||||
p.Value.Shutdown();
|
||||
}
|
||||
_previews.Clear();
|
||||
}
|
||||
|
||||
void OnEnable() {
|
||||
// ---------------------------------------------------------------------
|
||||
//
|
||||
// Messages
|
||||
//
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
void OnEnable() {
|
||||
_clips = targets.OfType<SwfClip>().ToList();
|
||||
SetupPreviews();
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI() {
|
||||
void OnDisable() {
|
||||
ShutdownPreviews();
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI() {
|
||||
serializedObject.Update();
|
||||
DrawDefaultInspector();
|
||||
DrawSequence();
|
||||
|
||||
|
Before Width: | Height: | Size: 452 KiB |
|
Before Width: | Height: | Size: 41 KiB |
BIN
ProjectStuff/Promo/Icon.psd
Normal file
|
Before Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
BIN
ProjectStuff/Promo/NewIcons/Icon_1200x630.png
Normal file
|
After Width: | Height: | Size: 457 KiB |
BIN
ProjectStuff/Promo/NewIcons/Icon_128x128.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
ProjectStuff/Promo/NewIcons/Icon_200x124.png
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
ProjectStuff/Promo/NewIcons/Icon_516x389.png
Normal file
|
After Width: | Height: | Size: 163 KiB |
BIN
ProjectStuff/Promo/Refs/img_478759 copy.png
Normal file
|
After Width: | Height: | Size: 44 KiB |