fix suffix error when using add_element
This commit is contained in:
parent
670cc830fd
commit
df44426195
@ -30,6 +30,8 @@ class BALLANCE_OT_add_elements(bpy.types.Operator):
|
|||||||
# get name
|
# get name
|
||||||
if self.elements_type in self.uniqueElements:
|
if self.elements_type in self.uniqueElements:
|
||||||
finalObjectName = self.elements_type + "_01"
|
finalObjectName = self.elements_type + "_01"
|
||||||
|
elif self.elements_type in self.attentionElements:
|
||||||
|
finalObjectName = self.elements_type + "_0" + str(self.elements_sector)
|
||||||
else:
|
else:
|
||||||
finalObjectName = self.elements_type + "_0" + str(self.elements_sector) + "_"
|
finalObjectName = self.elements_type + "_0" + str(self.elements_sector) + "_"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user