diff options
Diffstat (limited to 'source/blender/editors/screen/screen_ops.c')
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index 488f240ba48..898010858b9 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -44,6 +44,7 @@ #include "DNA_object_types.h" #include "DNA_curve_types.h" #include "DNA_gpencil_types.h" +#include "DNA_groom_types.h" #include "DNA_scene_types.h" #include "DNA_meta_types.h" #include "DNA_mask_types.h" @@ -530,6 +531,14 @@ int ED_operator_editmball(bContext *C) return 0; } +int ED_operator_editgroom(bContext *C) +{ + Object *obedit = CTX_data_edit_object(C); + if (obedit && obedit->type == OB_GROOM) + return NULL != ((Groom *)obedit->data)->editgroom; + return 0; +} + int ED_operator_mask(bContext *C) { ScrArea *sa = CTX_wm_area(C); |