From e0e9cd0163a62e74d9837becad4e9097228ce60e Mon Sep 17 00:00:00 2001 From: Martin Felke Date: Thu, 8 Jan 2015 01:14:07 +1100 Subject: PyAPI: Call to get the pixel x,y in a text block This allows scripts to request the screen location of any (line, column) pair. --- source/blenderplayer/bad_level_call_stubs/stubs.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blenderplayer') diff --git a/source/blenderplayer/bad_level_call_stubs/stubs.c b/source/blenderplayer/bad_level_call_stubs/stubs.c index 954e431dbd2..8a7c761915f 100644 --- a/source/blenderplayer/bad_level_call_stubs/stubs.c +++ b/source/blenderplayer/bad_level_call_stubs/stubs.c @@ -163,6 +163,7 @@ struct wmWindowManager; #include "../blender/editors/include/ED_render.h" #include "../blender/editors/include/ED_screen.h" #include "../blender/editors/include/ED_space_api.h" +#include "../blender/editors/include/ED_text.h" #include "../blender/editors/include/ED_transform.h" #include "../blender/editors/include/ED_uvedit.h" #include "../blender/editors/include/ED_view3d.h" @@ -482,6 +483,8 @@ bool ED_texture_context_check_lamp(const struct bContext *C) RET_ZERO bool ED_texture_context_check_particles(const struct bContext *C) RET_ZERO bool ED_texture_context_check_others(const struct bContext *C) RET_ZERO +bool ED_text_region_location_from_cursor(SpaceText *st, ARegion *ar, const int cursor_co[2], int r_pixel_co[2]) RET_ZERO + bool snapObjectsRayEx(struct Scene *scene, struct Base *base_act, struct View3D *v3d, struct ARegion *ar, struct Object *obedit, short snap_mode, struct Object **r_ob, float r_obmat[4][4], const float ray_start[3], const float ray_normal[3], float *r_ray_dist, -- cgit v1.2.3