mat picker - remove undo and info report
parent
3974a15ff0
commit
a218aefd10
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue