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:
authorJeroen Bakker <jeroen@blender.org>2021-01-04 15:04:37 +0300
committerJeroen Bakker <jeroen@blender.org>2021-01-04 15:04:37 +0300
commitc716b9862aa21b920e395d5acd751dccb2472e89 (patch)
tree3f00716c63ec08cc483d6580e7b0aba612d11b5b /source/blender/makesrna/intern/rna_scene.c
parentcb2517016ba16cd31b4dd36272ebfe95a54f868b (diff)
Fix: Update normals when switching scene quality
Recent commits also updated normals for metaballs, curves and volumetric objects. This change tags will tag to generate geometry for these new types.
Diffstat (limited to 'source/blender/makesrna/intern/rna_scene.c')
-rw-r--r--source/blender/makesrna/intern/rna_scene.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index 37f6a3d8704..265d9c5b98e 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -1729,7 +1729,7 @@ static void rna_Scene_mesh_quality_update(Main *bmain, Scene *UNUSED(scene), Poi
Scene *scene = (Scene *)ptr->owner_id;
FOREACH_SCENE_OBJECT_BEGIN (scene, ob) {
- if (ob->type == OB_MESH) {
+ if (ELEM(ob->type, OB_MESH, OB_CURVE, OB_VOLUME, OB_MBALL)) {
DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY);
}
}