Fix #27239: "A" menu in Sculptmode fails
[blender-staging.git] / release / scripts / startup / bl_operators / wm.py
index 6161aa4aa1959454da6b3fb0b58cabe35edf686c..d02b2bfbdde1aee001f5e9611b8bf69d9a5e5ff0 100644 (file)
@@ -395,7 +395,7 @@ class WM_MT_context_menu_enum(bpy.types.Menu):
         base_path, prop_string = data_path.rsplit(".", 1)
         value_base = context_path_validate(context, base_path)
 
-        values = [(i.name, i.identifier) for i in value_base.bl_rna.properties[prop_string].items]
+        values = [(i.name, i.identifier) for i in value_base.bl_rna.properties[prop_string].enum_items]
 
         for name, identifier in values:
             prop = self.layout.operator("wm.context_set_enum", text=name)