kopia lustrzana https://github.com/torrinworx/Blend_My_NFTs
Fixing issue with Attributes and Variants in Logic
rodzic
090005e0dd
commit
1527129ddd
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue