diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-11 13:57:26 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-11 13:57:26 +0400 |
commit | bf77ad00b3545107417104fc4f20e1f2a1ff0884 (patch) | |
tree | 30511e8ecf7e89f4fb2715dcc9cb8c5d3218f53c /source/blender/makesdna/DNA_scene_types.h | |
parent | 548f0fb88ce5a0b1e6de28574d428bad10d46214 (diff) |
py api:
ray cast function, very useful to be able to cast rays into the scene for scripts.
hit_co, hit_no, success = scene.ray_cast(start_co, end_co)
Diffstat (limited to 'source/blender/makesdna/DNA_scene_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_scene_types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h index f9286052aeb..dc3022e3b03 100644 --- a/source/blender/makesdna/DNA_scene_types.h +++ b/source/blender/makesdna/DNA_scene_types.h @@ -1394,6 +1394,9 @@ typedef struct Scene { #define BASE_VISIBLE(v3d, base) ( \ (base->lay & v3d->lay) && \ (base->object->restrictflag & OB_RESTRICT_VIEW) == 0) +#define BASE_VISIBLE_BGMODE(v3d, scene, base) ( \ + (base->lay & (v3d ? v3d->lay : scene->lay)) && \ + (base->object->restrictflag & OB_RESTRICT_VIEW) == 0) #define FIRSTBASE scene->base.first #define LASTBASE scene->base.last |