rename UI function
layout.prop_object() --> prop_search(). The internal name is uiItemPointerR, in python this can translate into into an Object, however this is misleading. It can be confused with a blender Object and uiItemPointerR can also be used for strings.
This commit is contained in:
@@ -245,8 +245,8 @@ class DATA_PT_shape_keys(MeshButtonsPanel, bpy.types.Panel):
|
||||
col = split.column(align=True)
|
||||
col.active = enable_edit_value
|
||||
col.label(text="Blend:")
|
||||
col.prop_object(kb, "vertex_group", ob, "vertex_groups", text="")
|
||||
col.prop_object(kb, "relative_key", key, "keys", text="")
|
||||
col.prop_search(kb, "vertex_group", ob, "vertex_groups", text="")
|
||||
col.prop_search(kb, "relative_key", key, "keys", text="")
|
||||
|
||||
else:
|
||||
row = layout.row()
|
||||
|
||||
Reference in New Issue
Block a user