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:
authorBastien Montagne <montagne29@wanadoo.fr>2015-10-09 11:51:38 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-10-09 11:51:38 +0300
commitc8005703f2989fe00901c630c009a5080c87e90b (patch)
tree64e40d0b593aefb8a6b677c45aa3df3a8f0775c9 /source/blender/editors
parent46ad2203057fbe4418120ab6dc1cb830e3d53958 (diff)
Fix T46420: Segfault when instancing smoke domain.
Looks like instancing of smoke sim is not supported at all (was fake-working in 3DView in 2.74, but not rendered). But it should not crash - code was adding temp 'fromdupli' base to the delayed drawing list... Nice to backport this to 2.76 I think.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_view3d/drawobject.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index 4e9818deb72..cd3a4a31fed 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -7653,7 +7653,9 @@ void draw_object(Scene *scene, ARegion *ar, View3D *v3d, Base *base, const short
}
}
- if ((md = modifiers_findByType(ob, eModifierType_Smoke)) && (modifier_isEnabled(scene, md, eModifierMode_Realtime))) {
+ if (((base->flag & OB_FROMDUPLI) == 0) &&
+ (md = modifiers_findByType(ob, eModifierType_Smoke)) &&
+ (modifier_isEnabled(scene, md, eModifierMode_Realtime))) {
smd = (SmokeModifierData *)md;
if (smd->domain) {