diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-09-08 10:05:42 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-09-08 10:05:42 +0400 |
commit | 3527d2fb27a62586894270df3c0b99cd3d377646 (patch) | |
tree | d18b9a06481b14b4c0a0e22a9b6d2f19c4ecf822 /source/blender/editors/object/object_edit.c | |
parent | 385cbb657dbf001dfb0aa47cf15f9c5cb291b325 (diff) |
code cleanup: quiet warnings
Diffstat (limited to 'source/blender/editors/object/object_edit.c')
-rw-r--r-- | source/blender/editors/object/object_edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index c69210e2450..96144d13519 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -560,7 +560,7 @@ void ED_object_editmode_enter(bContext *C, int flag) static int editmode_toggle_exec(bContext *C, wmOperator *op) { const int mode_flag = OB_MODE_EDIT; - const bool is_mode_set = CTX_data_edit_object(C); + const bool is_mode_set = (CTX_data_edit_object(C) != NULL); ToolSettings *toolsettings = CTX_data_tool_settings(C); if (!is_mode_set) { |