kopia lustrzana https://github.com/torrinworx/Blend_My_NFTs
Fixing major issue with Logic off-sync attribute index.
rodzic
9446b6e40e
commit
1e144c5409
|
@ -40,7 +40,7 @@ def get_var_info(variant, hierarchy):
|
||||||
def apply_rules_to_dna(hierarchy, deconstructed_dna, if_dict, result_dict, result_dict_type, enable_rarity):
|
def apply_rules_to_dna(hierarchy, deconstructed_dna, if_dict, result_dict, result_dict_type, enable_rarity):
|
||||||
# Check if Variants in if_dict are in deconstructed_dna, if so return if_list_selected = True:
|
# Check if Variants in if_dict are in deconstructed_dna, if so return if_list_selected = True:
|
||||||
if_list_selected = False
|
if_list_selected = False
|
||||||
for a in deconstructed_dna:
|
for attribute_index, a in enumerate(deconstructed_dna):
|
||||||
attribute_index = deconstructed_dna.index(a)
|
attribute_index = deconstructed_dna.index(a)
|
||||||
attribute = list(hierarchy.keys())[attribute_index]
|
attribute = list(hierarchy.keys())[attribute_index]
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue