FRBDK/Glue/ParticleEditorPlugin/ParticleEditorPlugin/Form1.cs
/// <summary>
/// Sends the current save object to the previewer for live preview.
/// </summary>
Sends the current save object to the previewer for live preview.
Sends the current save object to the previewer for live preview .
private void DisplaySelectedEmitter()
        {
                try
                {
                    ParticlePreviewer.Instance.DisplayEmitter(ApplicationState.Self.SelectedEmitterSave, Path.GetDirectoryName(fileName));
                }
                catch (Exception ex)
                {
                    if (ex.Message.Contains("primary thread"))
                    {
                    }
                    else
                    {
                        MessageBox.Show("Failed to preview emitter: " + ex.Message + ":\n" + ex.StackTrace);
                    }
                }
        }
private void DisplaySelectedEmitter ( ) { try { ParticlePreviewer . Instance . DisplayEmitter ( ApplicationState . Self . SelectedEmitterSave , Path . GetDirectoryName ( fileName ) ) ; } catch ( Exception ex ) { if ( ex . Message . Contains ( " " ) ) { } else { MessageBox . Show ( " " + ex . Message + " \n " + ex . StackTrace ) ; } } }
Sends the current save object to the previewer for live preview.
Sends the current save object to the previewer for live preview .
//if (!ParticlePreviewer.Instance.Running) //{ //    MessageBox.Show("It appears that the particle previewer is not running. Please start the previewer from the Preview menu."); //} //else //{ // TODO: Improve this dirty hack! Swallow messages about adding textures on primary thread //}