From af5af347715122016599a142c6114cbaa0a9ad73 Mon Sep 17 00:00:00 2001 From: Omar Emara Date: Thu, 17 Jun 2021 18:20:44 +0200 Subject: [PATCH] Update code in Dynamic Sockets developer page --- .../developer_guide/node_development/dynamic_sockets/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):