diff options
author | Hans Goudey <h.goudey@me.com> | 2020-06-05 21:30:15 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-06-05 21:30:15 +0300 |
commit | 2ee95e91f77e95f81b66f0428e1db1e9c859d327 (patch) | |
tree | 56a35f385f7d05ac09053a6fd2e459aee0783187 /source/blender/editors/object | |
parent | 70ad18b94d1f8dde1b6ed746be37c5aa3b67c66b (diff) |
Remove context check from constraint and shaderfx edit poll
This mirrors 1f78e86070 from 2018 for mesh modifiers.
Differential Revision: https://developer.blender.org/D7940
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_constraint.c | 5 | ||||
-rw-r--r-- | source/blender/editors/object/object_shader_fx.c | 5 |
2 files changed, 0 insertions, 10 deletions
diff --git a/source/blender/editors/object/object_constraint.c b/source/blender/editors/object/object_constraint.c index 76e95b0105a..1e04355c9a7 100644 --- a/source/blender/editors/object/object_constraint.c +++ b/source/blender/editors/object/object_constraint.c @@ -668,11 +668,6 @@ static bool edit_constraint_poll_generic(bContext *C, StructRNA *rna_type) PointerRNA ptr = CTX_data_pointer_get_type(C, "constraint", rna_type); Object *ob = (ptr.owner_id) ? (Object *)ptr.owner_id : ED_object_active_context(C); - if (!ptr.data) { - CTX_wm_operator_poll_msg_set(C, "Context missing 'constraint'"); - return 0; - } - if (!ob) { CTX_wm_operator_poll_msg_set(C, "Context missing active object"); return 0; diff --git a/source/blender/editors/object/object_shader_fx.c b/source/blender/editors/object/object_shader_fx.c index 30fcdfc88bc..5db4a5a4f57 100644 --- a/source/blender/editors/object/object_shader_fx.c +++ b/source/blender/editors/object/object_shader_fx.c @@ -296,11 +296,6 @@ static bool edit_shaderfx_poll_generic(bContext *C, StructRNA *rna_type, int obt PointerRNA ptr = CTX_data_pointer_get_type(C, "shaderfx", rna_type); Object *ob = (ptr.owner_id) ? (Object *)ptr.owner_id : ED_object_active_context(C); - if (!ptr.data) { - CTX_wm_operator_poll_msg_set(C, "Context missing 'shaderfx'"); - return 0; - } - if (!ob || ID_IS_LINKED(ob)) { return 0; } |