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:
authorPablo Dobarro <pablodp606@gmail.com>2019-09-13 17:42:33 +0300
committerPablo Dobarro <pablodp606@gmail.com>2019-09-13 17:43:05 +0300
commit27b82bbb75c5fd527b6b22682f8d173f6040644a (patch)
tree8f135c74539e3a0213f398135e5a19399a7b0d50
parentf71d89bb047e33e8990e2d87d19484b09452d3ca (diff)
Fix T69816: Using Transform gizmos in Sculpt Mode while MultiRes is activated crashes Blender
Reviewed By: jbakker Maniphest Tasks: T69816 Differential Revision: https://developer.blender.org/D5779
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 768a6976567..b0c4bcdef0e 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -7896,7 +7896,12 @@ static void sculpt_filter_cache_init(Object *ob, Sculpt *sd)
for (int i = 0; i < totnode; i++) {
BKE_pbvh_node_mark_normals_update(nodes[i]);
}
- BKE_pbvh_update_normals(ss->pbvh, NULL);
+
+ /* mesh->runtime.subdiv_ccg is not available. Updating of the normals is done during drawing.
+ * Filters can't use normals in multires. */
+ if (BKE_pbvh_type(ss->pbvh) != PBVH_GRIDS) {
+ BKE_pbvh_update_normals(ss->pbvh, NULL);
+ }
SculptThreadedTaskData data = {
.sd = sd,