diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-05-06 16:50:54 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-05-06 16:53:51 +0300 |
commit | 1d88bfce4017875490113a81dccd45df3f13a7c6 (patch) | |
tree | f911fdbe4e078cfc6830a6c39818e553c26327b4 /source/blender/blenkernel/intern/scene.c | |
parent | 5ffd10a6da956210062f5cd18c61de348f379849 (diff) |
Shader node: support native render capabilities
D1188 by @a.romanov
Diffstat (limited to 'source/blender/blenkernel/intern/scene.c')
-rw-r--r-- | source/blender/blenkernel/intern/scene.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c index 575a42ed690..f810630c83b 100644 --- a/source/blender/blenkernel/intern/scene.c +++ b/source/blender/blenkernel/intern/scene.c @@ -2011,6 +2011,12 @@ bool BKE_scene_use_new_shading_nodes(const Scene *scene) return (type && type->flag & RE_USE_SHADING_NODES); } +bool BKE_scene_use_shading_nodes_custom(Scene *scene) +{ + RenderEngineType *type = RE_engines_find(scene->r.engine); + return (type && type->flag & RE_USE_SHADING_NODES_CUSTOM); +} + bool BKE_scene_uses_blender_internal(const Scene *scene) { return STREQ(scene->r.engine, RE_engine_id_BLENDER_RENDER); |