diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-17 16:51:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-17 16:51:36 +0300 |
commit | 20cc14e2b7551bb043472174b8be79d8aaa4df3d (patch) | |
tree | 5e7b80e5140d9ee3774430e01b7f7c83e7d38b13 /source/blender/makesrna/intern/rna_scene.c | |
parent | 9edc64e255bd8208461794d8f444a8dc61a680a5 (diff) |
Cleanup: warning
Diffstat (limited to 'source/blender/makesrna/intern/rna_scene.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index fc4b1a49963..9331049780b 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -5682,6 +5682,7 @@ static void rna_def_scene_display(BlenderRNA *brna) StructRNA *srna; PropertyRNA *prop; +#ifdef WITH_CLAY_ENGINE static const EnumPropertyItem clay_matcap_items[] = { {1, "01", ICON_MATCAP_01, "", ""}, {2, "02", ICON_MATCAP_02, "", ""}, @@ -5709,8 +5710,9 @@ static void rna_def_scene_display(BlenderRNA *brna) {24, "24", ICON_MATCAP_24, "", ""}, {0, NULL, 0, NULL, NULL} }; +#endif - static float default_light_direction[3] = {-0.577350269, -0.577350269, 0.577350269}; + static float default_light_direction[3] = {-M_SQRT1_3, -M_SQRT1_3, M_SQRT1_3}; srna = RNA_def_struct(brna, "SceneDisplay", NULL); RNA_def_struct_ui_text(srna, "Scene Display", "Scene display settings for 3d viewport"); |