Now if chosen faction has no gender then it will be set universal and model's list will be rebuilt (literally drawn for the first time) during panel initialization. As rebuild_models() requires all other panels to be initialized, has_gender check was moved to the end of the function as well as other conditions to keep the style. Also random name button is hidden if has_name == false.
Flux will now attempt to generate name if it wasn't provided (mostly for cases when has_name == false)
I am not very sure whether those changes are appropriate but they were required when I tried to create faction without gender and name.
Changes:
Now if chosen faction has no gender then it will be set universal and model's list will be rebuilt (literally drawn for the first time) during panel initialization. As rebuild_models() requires all other panels to be initialized, has_gender check was moved to the end of the function as well as other conditions to keep the style. Also random name button is hidden if has_name == false.
Flux will now attempt to generate name if it wasn't provided (mostly for cases when has_name == false)
I am not very sure whether those changes are appropriate but they were required when I tried to create faction without gender and name.