MB-Lab icon indicating copy to clipboard operation
MB-Lab copied to clipboard

Hair color tooltip is random

Open thelabcat opened this issue 3 years ago • 13 comments

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.

thelabcat avatar Mar 11 '21 21:03 thelabcat

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.

animate1978 avatar Mar 12 '21 14:03 animate1978

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

thelabcat avatar Mar 14 '21 04:03 thelabcat

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 avatar Mar 14 '21 04:03 thelabcat

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 avatar Mar 14 '21 04:03 thelabcat

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

thelabcat avatar Mar 14 '21 04:03 thelabcat

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

animate1978 avatar Mar 15 '21 14:03 animate1978

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.

thelabcat avatar Mar 17 '21 19:03 thelabcat

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?

animate1978 avatar Mar 18 '21 13:03 animate1978

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 avatar Mar 18 '21 16:03 thelabcat

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

thelabcat avatar Mar 18 '21 16:03 thelabcat

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

Set for Cycles. Female elf.

thelabcat avatar Mar 24 '21 18:03 thelabcat

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 avatar Mar 25 '21 12:03 animate1978

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

animate1978 avatar Mar 25 '21 13:03 animate1978