From a218aefd1030a8f7f2f7e0c10f432811080d6e9c Mon Sep 17 00:00:00 2001 From: Pullusb Date: Wed, 28 Jul 2021 10:40:50 +0200 Subject: [PATCH] mat picker - remove undo and info report --- OP_material_picker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OP_material_picker.py b/OP_material_picker.py index c108fb3..9525223 100644 --- a/OP_material_picker.py +++ b/OP_material_picker.py @@ -27,7 +27,7 @@ class GP_OT_pick_closest_material(Operator): bl_idname = "gp.pick_closest_material" bl_label = "Get Closest Stroke Material" bl_description = "Pick closest stroke material" - bl_options = {"REGISTER", "UNDO"} + bl_options = {"REGISTER"} # , "UNDO" @classmethod def poll(cls, context): @@ -128,7 +128,7 @@ class GP_OT_pick_closest_material(Operator): def execute(self, context): self.ob.active_material_index = self.stroke.material_index - self.report({'INFO'}, f'Mat: {self.ob.data.materials[self.stroke.material_index].name}') + # self.report({'INFO'}, f'Mat: {self.ob.data.materials[self.stroke.material_index].name}') return {'FINISHED'} # def modal(self, context, event):