Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-04-30 17:42:57 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-04-30 17:44:39 +0300
commit99eca899c0926674a48dc43c913fac18770412eb (patch)
treee42d3c9d54505f2e46e948dc4208a3447d737b2c /source/blender/editors/object/object_constraint.c
parenta58a8296d9da785920575725bbb41fd5481b5d2d (diff)
Revert "Fix crash running constraint, modifier, fx from missing NULL check"
This reverts commit f4d5a69cf8512aafcc697d1b09f65489015b6af4. This causes bpy.ops.object.modifier_apply.poll() to fail as well as modifier binding operators (breaking tests).
Diffstat (limited to 'source/blender/editors/object/object_constraint.c')
-rw-r--r--source/blender/editors/object/object_constraint.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/source/blender/editors/object/object_constraint.c b/source/blender/editors/object/object_constraint.c
index 8ed1b862521..244124a6e0a 100644
--- a/source/blender/editors/object/object_constraint.c
+++ b/source/blender/editors/object/object_constraint.c
@@ -706,11 +706,6 @@ static bool edit_constraint_poll_generic(bContext *C,
return false;
}
- if (!con) {
- CTX_wm_operator_poll_msg_set(C, "Context missing active constraint");
- return false;
- }
-
if (!is_liboverride_allowed && BKE_constraint_is_nonlocal_in_liboverride(ob, con)) {
CTX_wm_operator_poll_msg_set(
C, "Cannot edit constraints coming from linked data in a library override");