API Cleanup: Use BKE_constraint prefix for constraint api
This commit is contained in:
@@ -1112,7 +1112,7 @@ static uiLayout *draw_constraint(uiLayout *layout, Object *ob, bConstraint *con)
|
||||
// int rb_col; // UNUSED
|
||||
|
||||
/* get constraint typeinfo */
|
||||
cti = BKE_constraint_get_typeinfo(con);
|
||||
cti = BKE_constraint_typeinfo_get(con);
|
||||
if (cti == NULL) {
|
||||
/* exception for 'Null' constraint - it doesn't have constraint typeinfo! */
|
||||
BLI_strncpy(typestr, (con->type == CONSTRAINT_TYPE_NULL) ? IFACE_("Null") : IFACE_("Unknown"), sizeof(typestr));
|
||||
@@ -1121,7 +1121,7 @@ static uiLayout *draw_constraint(uiLayout *layout, Object *ob, bConstraint *con)
|
||||
BLI_strncpy(typestr, IFACE_(cti->name), sizeof(typestr));
|
||||
|
||||
/* determine whether constraint is proxy protected or not */
|
||||
if (BKE_proxylocked_constraints_owner(ob, pchan))
|
||||
if (BKE_constraints_proxylocked_owner(ob, pchan))
|
||||
proxy_protected = (con->flag & CONSTRAINT_PROXY_LOCAL) == 0;
|
||||
else
|
||||
proxy_protected = 0;
|
||||
@@ -1184,7 +1184,7 @@ static uiLayout *draw_constraint(uiLayout *layout, Object *ob, bConstraint *con)
|
||||
*
|
||||
* Up/Down buttons should only be shown (or not grayed - todo) if they serve some purpose.
|
||||
*/
|
||||
if (BKE_proxylocked_constraints_owner(ob, pchan)) {
|
||||
if (BKE_constraints_proxylocked_owner(ob, pchan)) {
|
||||
if (con->prev) {
|
||||
prev_proxylock = (con->prev->flag & CONSTRAINT_PROXY_LOCAL) ? 0 : 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user