def execute(self, context): if bpy.context.mode == "OBJECT": Updater.resetCounts(self) return {'FINISHED'} else: self.report({'WARNING'}, "RoundedProfile:reset counter works only in Object mode") return {'CANCELLED'}
def execute(self, context): if bpy.context.mode == "OBJECT": Updater.createRoundedProfile(self, context) return {'FINISHED'} else: self.report({'WARNING'}, "RoundedProfile: works only in Object mode") return {'CANCELLED'}
def execute(self, context): if bpy.context.mode == "OBJECT": Updater.addCornerToRoundedProfile(self, context, self.cornerId) return {'FINISHED'} else: self.report({'WARNING'}, "RoundedProfile:add corner works only in Object mode") return {'CANCELLED'}