animate1978 / MB-Lab

MB-Lab is a character creation tool for Blender 4.0 and above, based off ManuelBastioniLAB
Other
1.76k stars 308 forks source link

Hair color tooltip is random #339

Open thelabcat opened 3 years ago

thelabcat commented 3 years ago

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:

  1. Create and finalize a character.
  2. Select the mesh part of the character, and go to the MB-Lab hair panel.
  3. 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.

animate1978 commented 3 years ago

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.

thelabcat commented 3 years ago

Probably EEVEE, but I think it happens with both. Will check...

thelabcat commented 3 years ago

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.

thelabcat commented 3 years ago

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.

thelabcat commented 3 years ago

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. image image image image image

animate1978 commented 3 years ago

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

thelabcat commented 3 years ago

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.

animate1978 commented 3 years ago

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?

thelabcat commented 3 years ago

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?

thelabcat commented 3 years ago

Aha, I see in the commits page that the version is 1.7.8.50 so maybe the bug is fixed now.

thelabcat commented 3 years ago

Updated blender to 2.92.0 and MB Lab to whatever was latest this morning. Problem persists. image

Set for Cycles. Female elf.

animate1978 commented 3 years ago

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.

animate1978 commented 3 years ago

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