From 12bf84cbe40a3f54d1b5927554a41a226c471ae0 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 21 Jan 2015 13:43:46 +1100 Subject: BKE_screen: add BKE_screen_find_area_xy Use from eyedropper & screen operators also define SPACE_TYPE_ANY for readability. --- source/blender/makesdna/DNA_space_types.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/makesdna/DNA_space_types.h') diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h index 723964364f6..4a73ff39a6e 100644 --- a/source/blender/makesdna/DNA_space_types.h +++ b/source/blender/makesdna/DNA_space_types.h @@ -1202,6 +1202,9 @@ typedef enum eSpace_Type { SPACEICONMAX = SPACE_CLIP } eSpace_Type; +/* use for function args */ +#define SPACE_TYPE_ANY -1 + // TODO: SPACE_SCRIPT #if (DNA_DEPRECATED_GCC_POISON == 1) #pragma GCC poison SPACE_IMASEL SPACE_SOUND -- cgit v1.2.3