LEFT | RIGHT |
1 /* | 1 /* |
2 * ***** BEGIN GPL LICENSE BLOCK ***** | 2 * ***** BEGIN GPL LICENSE BLOCK ***** |
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or | 4 * This program is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU General Public License | 5 * modify it under the terms of the GNU General Public License |
6 * as published by the Free Software Foundation; either version 2 | 6 * as published by the Free Software Foundation; either version 2 |
7 * of the License, or (at your option) any later version. | 7 * of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1050 if (index != -1) rd->actlay = index; | 1050 if (index != -1) rd->actlay = index; |
1051 } | 1051 } |
1052 | 1052 |
1053 static SceneRenderLayer *rna_RenderLayer_new(ID *id, RenderData *UNUSED(rd), con
st char *name) | 1053 static SceneRenderLayer *rna_RenderLayer_new(ID *id, RenderData *UNUSED(rd), con
st char *name) |
1054 { | 1054 { |
1055 Scene *scene = (Scene *)id; | 1055 Scene *scene = (Scene *)id; |
1056 SceneRenderLayer *srl = BKE_scene_add_render_layer(scene, name); | 1056 SceneRenderLayer *srl = BKE_scene_add_render_layer(scene, name); |
1057 | 1057 |
1058 WM_main_add_notifier(NC_SCENE | ND_RENDER_OPTIONS, NULL); | 1058 WM_main_add_notifier(NC_SCENE | ND_RENDER_OPTIONS, NULL); |
1059 | 1059 |
1060 return srl; | |
1061 } | |
1062 | |
1063 } | 1060 } |
1064 } | 1061 } |
1065 | 1062 |
1066 #else | 1063 #else |
1067 | 1064 |
1068 static void rna_def_transform_orientation(BlenderRNA *brna) | 1065 static void rna_def_transform_orientation(BlenderRNA *brna) |
LEFT | RIGHT |