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:
authorNicholas Bishop <nicholasbishop@gmail.com>2006-12-27 23:08:29 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2006-12-27 23:08:29 +0300
commit57df3fb1b45bfe468a81b7bc9613f713257c32e6 (patch)
treedac213864048e6ecfa63f3ef74489d81d1dd639e /source/blender/src/editobject.c
parenta5c188b4a6975b3f39a535ff9da292080a452b3c (diff)
Switching editmode on then off again with multires enabled should update the edge visibility
Diffstat (limited to 'source/blender/src/editobject.c')
-rw-r--r--source/blender/src/editobject.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c
index 72dd8f6ad5c..e9076bfee5e 100644
--- a/source/blender/src/editobject.c
+++ b/source/blender/src/editobject.c
@@ -174,6 +174,7 @@
#include "blendef.h"
#include "butspace.h"
+#include "multires.h"
#include "BIF_transform.h"
#include "BIF_poseobject.h"
@@ -1691,7 +1692,7 @@ void exit_editmode(int flag) /* freedata==0 at render, 1= freedata, 2= do undo b
load_editMesh();
if(freedata) free_editMesh(G.editMesh);
-
+
if(G.f & G_FACESELECT)
allqueue(REDRAWIMAGE, 0);
if(G.f & G_WEIGHTPAINT)
@@ -1732,6 +1733,10 @@ void exit_editmode(int flag) /* freedata==0 at render, 1= freedata, 2= do undo b
sbObjectToSoftbody(ob);
}
+
+ if(ob->type==OB_MESH && get_mesh(ob)->mr)
+ multires_edge_level_update(ob, get_mesh(ob));
+
/* also flush ob recalc, doesn't take much overhead, but used for particles */
DAG_object_flush_update(G.scene, ob, OB_RECALC_OB|OB_RECALC_DATA);