Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_constraint.c
| Show First 20 Lines • Show All 676 Lines • ▼ Show 20 Lines | static bool edit_constraint_poll_generic(bContext *C, | ||||
| } | } | ||||
| if (ID_IS_LINKED(ob) || (ptr.owner_id && ID_IS_LINKED(ptr.owner_id))) { | if (ID_IS_LINKED(ob) || (ptr.owner_id && ID_IS_LINKED(ptr.owner_id))) { | ||||
| CTX_wm_operator_poll_msg_set(C, "Cannot edit library data"); | CTX_wm_operator_poll_msg_set(C, "Cannot edit library data"); | ||||
| return false; | return false; | ||||
| } | } | ||||
| if (ID_IS_OVERRIDE_LIBRARY(ob) && !is_liboverride_allowed) { | if (ID_IS_OVERRIDE_LIBRARY(ob) && !is_liboverride_allowed) { | ||||
| if ((con == NULL) || (con->flag & CONSTRAINT_OVERRIDE_LIBRARY_LOCAL) != 0) { | if ((con == NULL) || (con->flag & CONSTRAINT_OVERRIDE_LIBRARY_LOCAL) == 0) { | ||||
| CTX_wm_operator_poll_msg_set(C, "Cannot edit constraints coming from library override"); | CTX_wm_operator_poll_msg_set(C, "Cannot edit constraints coming from library override"); | ||||
| return false; | return false; | ||||
| } | } | ||||
| } | } | ||||
| return true; | return true; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,761 Lines • Show Last 20 Lines | |||||