diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-03-02 20:13:01 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-03-02 20:13:01 +0400 |
commit | c718f0d658173a126836657b7ca1fc32662a8847 (patch) | |
tree | 59ef1cef1d50fcc2e1fb7408a1fc81e9ae2fba3f | |
parent | be701b6278769465495ec43d1d6817cf5fbfeaca (diff) |
fix [#34431] Crash with 2.66 when dyntopo enabled and using view plane mode
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index e787b5e125a..90e7645032b 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -2281,7 +2281,7 @@ static void calc_flatten_center(Sculpt *sd, Object *ob, PBVHNode **nodes, int to unode = sculpt_undo_push_node(ob, nodes[n], SCULPT_UNDO_COORDS); sculpt_brush_test_init(ss, &test); - if (ss->cache->original) { + if (ss->cache->original && unode->co) { BKE_pbvh_vertex_iter_begin(ss->pbvh, nodes[n], vd, PBVH_ITER_UNIQUE) { if (sculpt_brush_test_fast(&test, unode->co[vd.i])) { |