diff options
Diffstat (limited to 'source/blender/editors/util/ed_util.c')
-rw-r--r-- | source/blender/editors/util/ed_util.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/util/ed_util.c b/source/blender/editors/util/ed_util.c index af387e4f7c2..93762e6500c 100644 --- a/source/blender/editors/util/ed_util.c +++ b/source/blender/editors/util/ed_util.c @@ -58,7 +58,6 @@ #include "DEG_depsgraph.h" #include "ED_armature.h" -#include "ED_buttons.h" #include "ED_image.h" #include "ED_mesh.h" #include "ED_node.h" @@ -123,10 +122,10 @@ void ED_editors_init(bContext *C) if (mode == OB_MODE_OBJECT) { continue; } - else if (BKE_object_has_mode_data(ob, mode)) { + if (BKE_object_has_mode_data(ob, mode)) { continue; } - else if (ob->type == OB_GPENCIL) { + if (ob->type == OB_GPENCIL) { /* For multi-edit mode we may already have mode data (grease pencil does not need it). * However we may have a non-active object stuck in a grease-pencil edit mode. */ if (ob != obact) { |