[Bf-blender-cvs] [c716b9862aa] master: Fix: Update normals when switching scene quality
Jeroen Bakker
noreply at git.blender.org
Mon Jan 4 13:06:32 CET 2021
Commit: c716b9862aa21b920e395d5acd751dccb2472e89
Author: Jeroen Bakker
Date: Mon Jan 4 13:04:37 2021 +0100
Branches: master
https://developer.blender.org/rBc716b9862aa21b920e395d5acd751dccb2472e89
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.
===================================================================
M source/blender/makesrna/intern/rna_scene.c
===================================================================
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);
}
}
More information about the Bf-blender-cvs
mailing list