fix suffix error when using add_element

This commit is contained in:
yyc12345 2020-11-06 16:23:36 +08:00
parent 670cc830fd
commit df44426195

View File

@ -30,6 +30,8 @@ class BALLANCE_OT_add_elements(bpy.types.Operator):
# get name
if self.elements_type in self.uniqueElements:
finalObjectName = self.elements_type + "_01"
elif self.elements_type in self.attentionElements:
finalObjectName = self.elements_type + "_0" + str(self.elements_sector)
else:
finalObjectName = self.elements_type + "_0" + str(self.elements_sector) + "_"