diff options
author | Bastien Montagne <bastien@blender.org> | 2020-08-12 11:53:35 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-08-12 12:11:48 +0300 |
commit | d070d33aa3bf0cdc3f6656e46476b75b367cd482 (patch) | |
tree | 7e4e756595bff5028e73a3f034298fa1f7fe581c /source/blender/editors/object/object_shader_fx.c | |
parent | 4e31b5b1738cc36ee66421ecd16dc1662464ca89 (diff) |
Cleanup: Use proper bool type and literals for operators poll functions.
Diffstat (limited to 'source/blender/editors/object/object_shader_fx.c')
-rw-r--r-- | source/blender/editors/object/object_shader_fx.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/object/object_shader_fx.c b/source/blender/editors/object/object_shader_fx.c index 9cfba767dad..e2a30c4ce98 100644 --- a/source/blender/editors/object/object_shader_fx.c +++ b/source/blender/editors/object/object_shader_fx.c @@ -335,23 +335,23 @@ static bool edit_shaderfx_poll_generic(bContext *C, StructRNA *rna_type, int obt ShaderFxData *fx = ptr.data; /* May be NULL. */ if (!ob || ID_IS_LINKED(ob)) { - return 0; + return false; } if (obtype_flag && ((1 << ob->type) & obtype_flag) == 0) { - return 0; + return false; } if (ptr.owner_id && ID_IS_LINKED(ptr.owner_id)) { - return 0; + return false; } if (ID_IS_OVERRIDE_LIBRARY(ob)) { if ((fx == NULL) || (fx->flag & eShaderFxFlag_OverrideLibrary_Local) == 0) { CTX_wm_operator_poll_msg_set(C, "Cannot edit shaderfxs coming from library override"); - return 0; + return false; } } - return 1; + return true; } static bool edit_shaderfx_poll(bContext *C) |