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:
@@ -79,7 +79,7 @@ class DATA_PT_lattice(DataButtonsPanel, bpy.types.Panel):
|
||||
|
||||
row = layout.row()
|
||||
row.prop(lat, "use_outside")
|
||||
row.prop_object(lat, "vertex_group", context.object, "vertex_groups", text="")
|
||||
row.prop_search(lat, "vertex_group", context.object, "vertex_groups", text="")
|
||||
|
||||
|
||||
class DATA_PT_custom_props_lattice(DataButtonsPanel, PropertyPanel, bpy.types.Panel):
|
||||
|
Reference in New Issue
Block a user