File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 11import bpy
2+ from bpy .props import EnumProperty
23
34bl_info = {
45 "name" : "Toggle Normal Map Nodes" ,
1314
1415class MUT_OT_normal_map_nodes (bpy .types .Operator ):
1516 bl_description = "Toggle all normal map nodes off/on"
16- bl_idname = "nodes.mutation "
17+ bl_idname = "nodes.muting "
1718 bl_label = "Un/Mute Normal Map nodes"
1819 bl_options = set ({"REGISTER" , "UNDO" })
1920
20- mute = bpy . props . EnumProperty (
21+ mute : EnumProperty (
2122 items = [
2223 ("off" , "Off" , "Disable all" ),
2324 ("on" , "On" , "Enable all" ),
@@ -66,9 +67,9 @@ def poll(self, context):
6667
6768 def draw (self , context ):
6869 layout = self .layout
69- layout .operator ("nodes.mutation " , text = "On" ).mute = "on"
70- layout .operator ("nodes.mutation " , text = "Off" ).mute = "off"
71- layout .operator ("nodes.mutation " , text = "Toggle" ).mute = "toggle"
70+ layout .operator ("nodes.muting " , text = "On" ).mute = "on"
71+ layout .operator ("nodes.muting " , text = "Off" ).mute = "off"
72+ layout .operator ("nodes.muting " , text = "Toggle" ).mute = "toggle"
7273
7374
7475classes = (
You can’t perform that action at this time.
0 commit comments