Wings 3D Development Forum
[fixed] delete material - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Bug Reports (https://www.wings3d.com/forum/forumdisplay.php?fid=12)
+--- Thread: [fixed] delete material (/showthread.php?tid=2875)



[fixed] delete material - Hank - 12-26-2019

hi there,

I delete one by one materials assigned to my object and for some step I get:

Dump written 2019-12-26_10-0
Version: 2.2.5
OS: Linux 4.15.0-54-generic x86_64
GPU: NVIDIA Corporation | GeForce GTX 650 Ti/PCIe/SSE2
Window: geom
Reason: function_clause

Short stack trace:
[{gb_trees,delete_1,2,[{file,"gb_trees.erl"},{line,408}]},
{gb_trees,delete_1,2,[{file,"gb_trees.erl"},{line,409}]},
{gb_trees,delete_1,2,[{file,"gb_trees.erl"},{line,409}]},
{gb_trees,delete,2,[{file,"gb_trees.erl"},{line,404}]},
{wings_material,delete_material,2,[{file,"wings_material.erl"},{line,131}]},
{wings_develop,time_command,2,[{file,"wings_develop.erl"},{line,87}]},
{wings,raw_command,4,[{file,"wings.erl"},{line,636}]},
{wings_wm,handle_event,3,[{file,"wings_wm.erl"},{line,1016}]},
{wings_wm,send_event,2,[{file,"wings_wm.erl"},{line,982}]},
{wings_wm,do_dispatch,2,[{file,"wings_wm.erl"},{line,883}]},
{wings_wm,dispatch_event,1,[{file,"wings_wm.erl"},{line,792}]},
{wings_wm,get_and_dispatch,0,[{file,"wings_wm.erl"},{line,681}]},
{wings,init_part2,3,[{file,"wings.erl"},{line,108}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]

Long stack trace:
[{gb_trees,delete_1,[chrome,nil],[{file,"gb_trees.erl"},{line,408}]},
{gb_trees,delete_1,2,[{file,"gb_trees.erl"},{line,409}]},
{gb_trees,delete_1,2,[{file,"gb_trees.erl"},{line,409}]},
{gb_trees,delete,2,[{file,"gb_trees.erl"},{line,404}]},
{wings_material,delete_material,2,[{file,"wings_material.erl"},{line,131}]},
{wings_develop,time_command,2,[{file,"wings_develop.erl"},{line,87}]},
{wings,raw_command,4,[{file,"wings.erl"},{line,636}]},
{wings_wm,handle_event,3,[{file,"wings_wm.erl"},{line,1016}]},
{wings_wm,send_event,2,[{file,"wings_wm.erl"},{line,982}]},
{wings_wm,do_dispatch,2,[{file,"wings_wm.erl"},{line,883}]},
{wings_wm,dispatch_event,1,[{file,"wings_wm.erl"},{line,792}]},
{wings_wm,get_and_dispatch,0,[{file,"wings_wm.erl"},{line,681}]},
{wings,init_part2,3,[{file,"wings.erl"},{line,108}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]

No particular step is followed for this operation. Just LMB on the material and delete key.

[update]
I've just find out it's related with quick delete key press step. Thus, any material which is removed with 2xdelete, cause the issue.
Tried with new scene and it doesn't work like this Sad

BR, Hank


RE: delete material - micheus - 12-27-2019

Thanks for report it.
It looks like the Outliner takes a little longer to be updated and you end up by trying to delete a second time. And if I remember your screenshot, that project has a lot of material/objects.

(12-26-2019, 09:06 AM)Hank Wrote: I delete one by one materials assigned to my object and for some step I get: ...
just curious...
Did you delete all (or most) of them? Because it seems to be faster you just select the object and set its material to Default; Save your project and Reload it.


RE: delete material - Hank - 12-27-2019

yes, this file has many objects and materials but I deleted one by one, not several at once.
Moreover, if we are already talking about update (or respond) time, I found some additional issue.
See the recording:



when you unhook geometry graph and make material assignment to the object, then keypads lost the focus from the main geometry window. In the top right screen you can see that I press 'space' but it did not deselect any face. Tried with other keys and no respond too. As you can see, following mouse pointer, each windows grab the focus, but I have to click LMB first and then it will activate keyboard.
It's not something I can't live without but when the geometry window is hooked along with the other windows then you don't get this problem. And since I started to use my second monitor with additional W3D areas it started to make some complications...
We can keep this request on 'stand by' or just create new topic.

BR, Hank.