[Bf-blender-cvs] [476b4c415c0] blender2.8: Fix T55493: Sculpting on smooth shaded bug.

Bastien Montagne noreply at git.blender.org
Mon Jun 25 14:15:19 CEST 2018


Commit: 476b4c415c091adf1c5dbdf7e842073c49ebe411
Author: Bastien Montagne
Date:   Mon Jun 25 14:13:12 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB476b4c415c091adf1c5dbdf7e842073c49ebe411

Fix T55493: Sculpting on smooth shaded bug.

Undo was not tagging PBVH to update normals too...

===================================================================

M	source/blender/editors/sculpt_paint/sculpt_undo.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c
index 2872ad4fb9c..bc22147b15d 100644
--- a/source/blender/editors/sculpt_paint/sculpt_undo.c
+++ b/source/blender/editors/sculpt_paint/sculpt_undo.c
@@ -561,7 +561,7 @@ static void sculpt_undo_restore_list(bContext *C, ListBase *lb)
 		else {
 			BKE_pbvh_search_callback(ss->pbvh, NULL, NULL, update_cb, &rebuild);
 		}
-		BKE_pbvh_update(ss->pbvh, PBVH_UpdateBB | PBVH_UpdateOriginalBB | PBVH_UpdateRedraw, NULL);
+		BKE_pbvh_update(ss->pbvh, PBVH_UpdateBB | PBVH_UpdateOriginalBB | PBVH_UpdateRedraw | PBVH_UpdateNormals, NULL);
 
 		if (BKE_sculpt_multires_active(scene, ob)) {
 			if (rebuild)



More information about the Bf-blender-cvs mailing list