MB-Lab
MB-Lab copied to clipboard
Hair color tooltip is random
Describe the bug When hovering over items in the hair color menu, the tooltip displayed is entirely random, and is not even hair color most of the time (IE: "plum.")
To Reproduce Steps to reproduce the behavior:
- Create and finalize a character.
- Select the mesh part of the character, and go to the MB-Lab hair panel.
- Select the hair color pull down, and hover over an option. The tooltip displayed does not match the entry, and is sometimes different each time for the same entry.
Expected behavior Hair color tooltips that possibly describe the color involved, such as "Strawberry blonde: Blonde, but close to the 'red hair' color."
Additional context I may be using a slightly out of date version of the addon, but I don't think I am.
Just a question, which render engine are you using by chance? Depending on the engine (Cycles / EEVEE) will result in different shaders loaded into the scene, not to mention if you switch render engines at any point after creation of the character.
Probably EEVEE, but I think it happens with both. Will check...
OK, I didn't even change anything and just open the default blend file, and hovering over "jet black," it said "Auburn," then I moved a little and it said "_reconstruct," something else, something else still (definitely not colors), and finally settled on a blank tooltip. I will say that for awhile nothing in the list was showing any tooltips, so maybe they got backlogged? I did hover over auburn before jet black.
Yeah, same thing again. Long abscesses of any tooltips, then when they come, it's a random color, "_reconstruct." or some other programming sounding phrase.
Confirmed, different tooltips show for the same item when I hover back over it without even closing the list.
More items: Some non-ASCII goblygook. "arr_1." "MELANIN." "arr_0." No tooltip at all.
Burgundy seems to display "Auburn" more often than it displays anything else. Are you using sets somewhere? They have arbitrary order and could cause something like this.
Aha, the console has been very busy.
Sorry for the delay.
II will look into this, I am not the author of the hair engines, that is all @Noizirom works, I personally haven't gotten issues with the code but then again I haven't tested fully either
Thanks. Sorry for the multiple posts.
Oh yes, testing. The one thing aperture science is good at. They should have put all their work into programming instead.
It's ok for the multiple postings.
However I am not experiencing the problems you are describing so this is very odd... May I ask what version you happen to be using?
I am using 1.7.8.42 I do not know how to check the current released version on GitHub. how should I do that?
Aha, I see in the commits page that the version is 1.7.8.50 so maybe the bug is fixed now.
Updated blender to 2.92.0 and MB Lab to whatever was latest this morning. Problem persists.
Set for Cycles. Female elf.
I am now getting this issue, I tried the Female Elf as you have above and sure enough the tooltips are garbage.
I am looking into this though seeing what could cause such problems.
https://github.com/animate1978/MB-Lab/blob/7b3e5b5179b3398c431cf8484ba89e92743ab38b/init.py#L592
Seems that this chunk of code here is where the problems start? I could be wrong @Noizirom