Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_constraint.c
| Context not available. | |||||
| #include "BKE_constraint.h" | #include "BKE_constraint.h" | ||||
| #include "BKE_context.h" | #include "BKE_context.h" | ||||
| #include "BKE_depsgraph.h" | #include "BKE_depsgraph.h" | ||||
| #include "BKE_object.h" | |||||
| static StructRNA *rna_ConstraintType_refine(struct PointerRNA *ptr) | static StructRNA *rna_ConstraintType_refine(struct PointerRNA *ptr) | ||||
| { | { | ||||
| Context not available. | |||||
| /* make sure name is unique */ | /* make sure name is unique */ | ||||
| if (ptr->id.data) { | if (ptr->id.data) { | ||||
| Object *ob = ptr->id.data; | Object *ob = ptr->id.data; | ||||
| ListBase *list = get_constraint_lb(ob, con, NULL); | ListBase *list = BKE_object_constraint_listbase_get(ob, con, NULL); | ||||
| /* if we have the list, check for unique name, otherwise give up */ | /* if we have the list, check for unique name, otherwise give up */ | ||||
| if (list) | if (list) | ||||
| Context not available. | |||||
| Object *ob = ptr->id.data; | Object *ob = ptr->id.data; | ||||
| bConstraint *con = ptr->data; | bConstraint *con = ptr->data; | ||||
| bPoseChannel *pchan; | bPoseChannel *pchan; | ||||
| ListBase *lb = get_constraint_lb(ob, con, &pchan); | ListBase *lb = BKE_object_constraint_listbase_get(ob, con, &pchan); | ||||
| if (lb == NULL) | if (lb == NULL) | ||||
| printf("%s: internal error, constraint '%s' not found in object '%s'\n", | printf("%s: internal error, constraint '%s' not found in object '%s'\n", | ||||
| Context not available. | |||||