more ui api changes.
- remove functions such as operator_int(), operator_enum(), operator_string this mixed with keyword arguments in a way that made them hard to read. Instead, have operator() always return properties rather then needing an argument. - rename prop_pointer() --> prop_object(), pointer is more a C thing. - missed item_enumR(), rename to prop_enum()
This commit is contained in:
@@ -101,7 +101,7 @@ class CONSOLE_MT_language(bpy.types.Menu):
|
||||
languages.sort()
|
||||
|
||||
for language in languages:
|
||||
layout.operator_string("console.language", "language", language, text=language[0].upper() + language[1:])
|
||||
layout.operator("console.language", text=language[0].upper() + language[1:]).language = language
|
||||
|
||||
|
||||
def add_scrollback(text, text_type):
|
||||
|
||||
Reference in New Issue
Block a user