From df44426195ecbc06e7f6a1a82b285cf09d1b04ef Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Fri, 6 Nov 2020 16:23:36 +0800 Subject: [PATCH] fix suffix error when using add_element --- ballance_blender_plugin/add_elements.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ballance_blender_plugin/add_elements.py b/ballance_blender_plugin/add_elements.py index 564ab7d..01edb8c 100644 --- a/ballance_blender_plugin/add_elements.py +++ b/ballance_blender_plugin/add_elements.py @@ -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) + "_"