private void createInstance(System.Windows.Forms.DragEventArgs e) { EngineInstanceParticleGroup instance = new EngineInstanceParticleGroup(); instance.SetEffectFile(System.IO.Path.ChangeExtension(_assetPaths[0], ".xml")); _instance = instance; _instance.SetRemoveWhenFinished(false); // Needed to be able to correctly restart the particle effect. }
public override void DragLeave() { if (_instance != null) { _instance.Dispose(); _instance = null; } if (_dummyShape != null) { _dummyShape.Dispose(); _dummyShape = null; } EditorManager.ActiveView.UpdateView(false); }