some ping objects

This commit is contained in:
2017-02-11 22:40:50 +07:00
parent 1084c839a1
commit 5b26becc27
2 changed files with 11 additions and 2 deletions

View File

@@ -80,17 +80,25 @@ namespace FTEditor.Editors {
// //
void CreateAllClipsPrefabs() { void CreateAllClipsPrefabs() {
Selection.objects = _clips var objects = _clips
.Select (p => CreateClipPrefab(p)) .Select (p => CreateClipPrefab(p))
.Where (p => !!p) .Where (p => !!p)
.ToArray(); .ToArray();
Selection.objects = objects;
foreach ( var obj in objects ) {
EditorGUIUtility.PingObject(obj);
}
} }
void CreateAllClipsOnScene() { void CreateAllClipsOnScene() {
Selection.objects = _clips var objects = _clips
.Select (p => CreateClipOnScene(p)) .Select (p => CreateClipOnScene(p))
.Where (p => !!p) .Where (p => !!p)
.ToArray(); .ToArray();
Selection.objects = objects;
foreach ( var obj in objects ) {
EditorGUIUtility.PingObject(obj);
}
} }
// //

View File

@@ -265,6 +265,7 @@ namespace FTEditor {
static void Tools_FlashTools_OpenSettings() { static void Tools_FlashTools_OpenSettings() {
var settings_holder = SwfEditorUtils.GetSettingsHolder(); var settings_holder = SwfEditorUtils.GetSettingsHolder();
Selection.objects = new Object[]{settings_holder}; Selection.objects = new Object[]{settings_holder};
EditorGUIUtility.PingObject(settings_holder);
} }
[MenuItem("Tools/FlashTools/Reimport all swf files")] [MenuItem("Tools/FlashTools/Reimport all swf files")]