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:
authorMatt Ebb <matt@mke3.net>2009-11-11 14:49:46 +0300
committerMatt Ebb <matt@mke3.net>2009-11-11 14:49:46 +0300
commit52e4b9d02079c79d97b15f5d4b1105ca20d78af0 (patch)
treeb09e0a2cfadd06dfd500902661318fc08531cddc /source/blender/makesrna/intern/rna_modifier.c
parent5bedc65d61c946e066e8c742dcdc51005c1e627e (diff)
Fix for [#19781] smoke domain displayed in wire even after removed it
Now it resets back to Shaded display, which still may not be what you want, but there's more chance of it, and it's the default.
Diffstat (limited to 'source/blender/makesrna/intern/rna_modifier.c')
-rw-r--r--source/blender/makesrna/intern/rna_modifier.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c
index 93972894ef1..7bc10c4f470 100644
--- a/source/blender/makesrna/intern/rna_modifier.c
+++ b/source/blender/makesrna/intern/rna_modifier.c
@@ -216,8 +216,17 @@ static void rna_Smoke_set_type(bContext *C, PointerRNA *ptr)
smokeModifier_free(smd); // XXX TODO: completely free all 3 pointers
smokeModifier_createType(smd); // create regarding of selected type
- if(smd->type & MOD_SMOKE_TYPE_DOMAIN)
- ob->dt = OB_WIRE;
+ switch (smd->type) {
+ case MOD_SMOKE_TYPE_DOMAIN:
+ ob->dt = OB_WIRE;
+ break;
+ case MOD_SMOKE_TYPE_FLOW:
+ case MOD_SMOKE_TYPE_COLL:
+ case 0:
+ default:
+ ob->dt = OB_SHADED;
+ break;
+ }
// update dependancy since a domain - other type switch could have happened
rna_Modifier_dependency_update(C, ptr);