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:
authorAlexander Gavrilov <angavrilov@gmail.com>2018-12-01 13:20:18 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2018-12-01 13:20:18 +0300
commit3bd057d47284d727dadb6fd826bf55143a00ad97 (patch)
tree81b2ec88c6b1dabf7a6482d19743c2071c6f0441 /source/blender/draw/intern
parentbfcd25b313998d5d62e927f80a837555c5113de7 (diff)
Texture Paint: fix wireframe and hiding not working with subsurf.
The editflag field is only valid in the original mesh instance.
Diffstat (limited to 'source/blender/draw/intern')
-rw-r--r--source/blender/draw/intern/draw_manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c
index 9d0fb690b5a..ba61f376ce9 100644
--- a/source/blender/draw/intern/draw_manager.c
+++ b/source/blender/draw/intern/draw_manager.c
@@ -192,7 +192,7 @@ bool DRW_object_is_flat_normal(const Object *ob)
bool DRW_object_use_hide_faces(const struct Object *ob)
{
if (ob->type == OB_MESH) {
- const Mesh *me = ob->data;
+ const Mesh *me = DEG_get_original_object((Object*)ob)->data;
switch (ob->mode) {
case OB_MODE_TEXTURE_PAINT: