diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-02-15 19:55:24 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-02-15 19:55:24 +0300 |
commit | 6e40e3489f6d43e07da04a034ee564c9134149bb (patch) | |
tree | 8b82f45050f7e8bfecece9aec561e6759fe34edc /source/blender/makesrna/intern/rna_scene.c | |
parent | 14c00cda39dcae945611a3de34d9030b000f2649 (diff) |
Add global control over disabling high-resolution smoke draw
Can be found in the viewport's simplify panel, allows to easily
disable high-res display for all the smokes in the scene.
Diffstat (limited to 'source/blender/makesrna/intern/rna_scene.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index bc48192aa4d..e151cb974ed 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -1556,6 +1556,7 @@ static void rna_Scene_use_simplify_update(Main *bmain, Scene *UNUSED(scene), Poi } WM_main_add_notifier(NC_GEOM | ND_DATA, NULL); + WM_main_add_notifier(NC_OBJECT | ND_DRAW, NULL); DEG_id_tag_update(&sce->id, 0); } @@ -5490,6 +5491,11 @@ static void rna_def_scene_render_data(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Simplify Child Particles", "Global child particles percentage during rendering"); RNA_def_property_update(prop, 0, "rna_Scene_simplify_update"); + prop = RNA_def_property(srna, "use_simplify_smoke_highres", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_negative_sdna(prop, NULL, "simplify_smoke_ignore_highres", 1); + RNA_def_property_ui_text(prop, "Use Smoke Highres", "Allow drawing high-res smoke in viewport"); + RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, NULL); + /* Grease Pencil - Simplify Options */ prop = RNA_def_property(srna, "simplify_gpencil", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "simplify_gpencil", SIMPLIFY_GPENCIL_ENABLE); |