diff --git a/content/developer_guide/node_development/dynamic_sockets/index.md b/content/developer_guide/node_development/dynamic_sockets/index.md index c97e8bbd..5c2ed7de 100644 --- a/content/developer_guide/node_development/dynamic_sockets/index.md +++ b/content/developer_guide/node_development/dynamic_sockets/index.md @@ -56,7 +56,7 @@ class GeneratePointsNode(bpy.types.Node, AnimationNode): # AnimationNode.refresh will cause AN to remove all sockets # and to call the create method again. - mode = EnumProperty(name = "Mode", default = "LINE", + mode: EnumProperty(name = "Mode", default = "LINE", items = modeItems, update = AnimationNode.refresh) def create(self): @@ -113,7 +113,7 @@ class GeneratePointsNode(bpy.types.Node, AnimationNode): bl_idname = "an_GeneratePointsNode" bl_label = "Generate Points" - mode = EnumProperty(name = "Mode", default = "LINE", + mode: EnumProperty(name = "Mode", default = "LINE", items = modeItems, update = AnimationNode.refresh) def create(self):