[Bf-blender-cvs] [b78d373e96e] blender-v2.83-release: Fix: Update normals when switching scene quality

Jeroen Bakker noreply at git.blender.org
Wed Jan 13 11:41:52 CET 2021


Commit: b78d373e96e03cec55210779b774630906f216e0
Author: Jeroen Bakker
Date:   Mon Jan 4 13:04:37 2021 +0100
Branches: blender-v2.83-release
https://developer.blender.org/rBb78d373e96e03cec55210779b774630906f216e0

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 05acff160e7..127dafe2a39 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -1697,7 +1697,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