Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2016-10-24 21:58:12 +0300
committerDalai Felinto <dfelinto@gmail.com>2016-10-24 22:05:49 +0300
commit1458f0136d5e34307563a72144ddee88304fc318 (patch)
tree5476d92512f16807f389899573398da12a1f7eaa /source/blender/makesrna/intern
parent744718f6356ece21bf90c54550b39d56cf0a356e (diff)
Viewport: move the background to the "modern" viewport
This also leaves room for the gradient background Mike Erwin wants to implement.
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r--source/blender/makesrna/intern/rna_space.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index a1e1c804873..7580bd900e6 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -2379,6 +2379,13 @@ static void rna_def_space_view3d(BlenderRNA *brna)
{0, NULL, 0, NULL, NULL}
};
+ static EnumPropertyItem debug_background_items[] = {
+ {V3D_DEBUG_BACKGROUND_NONE, "NONE", 0, "None", ""},
+ {V3D_DEBUG_BACKGROUND_GRADIENT, "GRADIENT", 0, "Gradient", ""},
+ {V3D_DEBUG_BACKGROUND_WORLD, "WORLD", 0, "World", ""},
+ {0, NULL, 0, NULL, NULL}
+ };
+
srna = RNA_def_struct(brna, "SpaceView3D", "Space");
RNA_def_struct_sdna(srna, "View3D");
RNA_def_struct_ui_text(srna, "3D View Space", "3D View space data");
@@ -2801,6 +2808,12 @@ static void rna_def_space_view3d(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Far", "Far distance for depth debugging");
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL);
+ prop = RNA_def_property(srna, "debug_background", PROP_ENUM, PROP_NONE);
+ RNA_def_property_enum_sdna(prop, NULL, "debug.background");
+ RNA_def_property_enum_items(prop, debug_background_items);
+ RNA_def_property_ui_text(prop, "Background", "");
+ RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL);
+
/* *** Animated *** */
RNA_define_animate_sdna(true);
/* region */