Skip to content

Commit f671fc0

Browse files
authored
Update mute_normal_map_nodes.py
Updates to the newer property definition format with a colon. Should now work in 2.93 and above.
1 parent 32a4b00 commit f671fc0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

mute_normal_map_nodes.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import bpy
2+
from bpy.props import EnumProperty
23

34
bl_info = {
45
"name": "Toggle Normal Map Nodes",
@@ -13,11 +14,11 @@
1314

1415
class 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

7475
classes = (

0 commit comments

Comments
 (0)