Beispiel #1
0
        private void _OnLoad(object sender, EventArgs e)
        {
            BlendReader.Initialize();
            var app = BlendReader.GetInstance();

            app.SetListener(this);
            //app.OpenFile("C:/blender/test.blend");// test
        }
Beispiel #2
0
        private void _OnDragDrop(object sender, DragEventArgs e)
        {
            var fileNames = (string[])e.Data.GetData(DataFormats.FileDrop, false);

            var app = BlendReader.GetInstance();

            if (app.OpenFile(fileNames[0]))
            {
                m_toolStripStatusLabel.Text = fileNames[0];
            }
            else
            {
                Dialog.ShowError(new BlenderException("Failed to open file"));
            }
        }
Beispiel #3
0
 public static void Initialize()
 {
     Debug.Assert(s_app == null);
     s_app = new BlendReader();
 }