BrawlCrate / BrawlCrateIssues

Separate issue tracker repo for bugs submitted from the application, matching BrawlBox's implementation
3 stars 0 forks source link

Material trouble #258

Open BrawlCrate opened 3 years ago

BrawlCrate commented 3 years ago

I am trying to do a mod which makes an outline of a character (ttoadette) and was dragging in a material, when it threw the error.

v0.36b x86

Unable to cast object of type 'BrawlLib.SSBB.ResourceNodes.MDL0ObjectNode' to type 'BrawlLib.SSBB.ResourceNodes.MDL0MaterialRefNode'.
   at BrawlLib.SSBB.ResourceNodes.MDL0MaterialNode.Unbind()
   at BrawlLib.SSBB.ResourceNodes.MDL0GroupNode.Unbind()
   at BrawlLib.SSBB.ResourceNodes.MDL0Node.Detach()
   at BrawlLib.SSBB.ResourceNodes.MDL0ObjectNode.Detach()
   at BrawlLib.Internal.Windows.Controls.Model_Panel.ModelPanel.ClearTargets()
   at BrawlLib.Internal.Windows.Controls.Model_Panel.ModelPanel.ClearAll()
   at BrawlLib.Internal.Windows.Controls.MDL0ObjectControl.SetTarget(MDL0ObjectNode o)
   at BrawlCrate.UI.MainForm.resourceTree_SelectionChanged(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at BrawlCrate.UI.ResourceTree.set_SelectedNode(TreeNode value)
   at BrawlCrate.UI.ResourceTree.OnAfterSelect(TreeViewEventArgs e)
   at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv)
   at System.Windows.Forms.TreeView.WmNotify(Message& m)
   at System.Windows.Forms.TreeView.WndProc(Message& m)
   at BrawlCrate.UI.ResourceTree.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)