mat picker - remove undo and info report

gpv2
Pullusb 2021-07-28 10:40:50 +02:00
parent 3974a15ff0
commit a218aefd10
1 changed files with 2 additions and 2 deletions

View File

@ -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):