[Bf-blender-cvs] [dbaf5fb4bbb] blender-v2.91-release: Fix: Update normals when switching scene quality
Jeroen Bakker
noreply at git.blender.org
Wed Jan 13 14:31:17 CET 2021
Commit: dbaf5fb4bbbda382b21d1090f7498115fdc1a3fd
Author: Jeroen Bakker
Date: Mon Jan 4 13:04:37 2021 +0100
Branches: blender-v2.91-release
https://developer.blender.org/rBdbaf5fb4bbbda382b21d1090f7498115fdc1a3fd
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 24cff501b59..da8b8f6ca29 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -1706,7 +1706,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