diff options
author | Ton Roosendaal <ton@blender.org> | 2009-06-07 15:12:35 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-06-07 15:12:35 +0400 |
commit | a2f9ca3b3fcd020e5124b6c3fb6523545377b5e2 (patch) | |
tree | 83830cf58852e6b2a6572d36b244bd6bdeddfebc /source/blender/makesrna/intern/rna_world.c | |
parent | 1bb8d745b914aade700d69220e665096d5db43d0 (diff) |
2.5
Nice goodie: Preview renders!
- Added new preview.blend, allowing super wide cinemascope previews
- Draws nicely blended inside widget type, rounded corners
- Preview now renders using all available cpus/cores.
- Uses - hopefully rock stable - method, which doesn't copy or
allocate anything for previews, but just uses render API calls.
- Multiple previews are possible! But, added provision in Jobs
manager to only render one preview job at a time. If you start
more preview jobs, they're suspended until it's their turn.
Bugfix: new buttons context code crashed when going full-window.
Tweaks are still needed for notifiers. I have to figure out still
how to retrieve SpaceButs button view types...
Diffstat (limited to 'source/blender/makesrna/intern/rna_world.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_world.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_world.c b/source/blender/makesrna/intern/rna_world.c index 81fad658a7e..4c7e085512d 100644 --- a/source/blender/makesrna/intern/rna_world.c +++ b/source/blender/makesrna/intern/rna_world.c @@ -34,6 +34,8 @@ #include "DNA_texture_types.h" #include "DNA_world_types.h" +#include "WM_types.h" + #ifdef RNA_RUNTIME static PointerRNA rna_World_ambient_occlusion_get(PointerRNA *ptr) @@ -348,11 +350,13 @@ void RNA_def_world(BlenderRNA *brna) RNA_def_property_float_sdna(prop, NULL, "horr"); RNA_def_property_array(prop, 3); RNA_def_property_ui_text(prop, "Horizon Color", "Color at the horizon."); - + RNA_def_property_update(prop, NC_WORLD, NULL); + prop= RNA_def_property(srna, "zenith_color", PROP_FLOAT, PROP_COLOR); RNA_def_property_float_sdna(prop, NULL, "zenr"); RNA_def_property_array(prop, 3); RNA_def_property_ui_text(prop, "Zenith Color", "Color at the zenith."); + RNA_def_property_update(prop, NC_WORLD, NULL); prop= RNA_def_property(srna, "ambient_color", PROP_FLOAT, PROP_COLOR); RNA_def_property_float_sdna(prop, NULL, "ambr"); @@ -374,6 +378,7 @@ void RNA_def_world(BlenderRNA *brna) prop= RNA_def_property(srna, "blend_sky", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "skytype", WO_SKYBLEND); RNA_def_property_ui_text(prop, "Blend Sky", "Renders background with natural progression from horizon to zenith."); + RNA_def_property_update(prop, NC_WORLD, NULL); prop= RNA_def_property(srna, "paper_sky", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "skytype", WO_SKYPAPER); @@ -382,6 +387,7 @@ void RNA_def_world(BlenderRNA *brna) prop= RNA_def_property(srna, "real_sky", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "skytype", WO_SKYREAL); RNA_def_property_ui_text(prop, "Real Sky", "Renders background with a real horizon."); + RNA_def_property_update(prop, NC_WORLD, NULL); /* physics */ prop= RNA_def_property(srna, "physics_engine", PROP_ENUM, PROP_NONE); |