Fixing issue with Attributes and Variants in Logic

pull/87/head
Torrin Leonard 2022-04-11 22:49:40 -04:00
rodzic 090005e0dd
commit 1527129ddd
2 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -1,8 +1,8 @@
bl_info = {
"name": "Blend_My_NFTs",
"author": "Torrin Leonard, This Cozy Studio Inc",
"version": (3, 0, 0),
"blender": (3, 0, 0),
"version": (3, 1, 0),
"blender": (3, 1, 3),
"location": "View3D",
"description": "An open source, free to use Blender add-on that enables you to create thousands of unique images, animations, and 3D models.",
"category": "Development",

Wyświetl plik

@ -100,9 +100,11 @@ def reconstructDNA(deconstructedDNA):
return (''.join(reconstructed_DNA.split('-', 1)))
def strip_empty_variant(num_list):
"""Strips empty variants if full attribute collection. Used for processing below."""
for i in num_list:
var_list = num_list[i]
var_list.remove("0")
if "0" in var_list:
var_list.remove("0")
num_list[i] = var_list
return num_list