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:
authorTon Roosendaal <ton@blender.org>2005-06-08 17:01:31 +0400
committerTon Roosendaal <ton@blender.org>2005-06-08 17:01:31 +0400
commitcf1022ffaa1e60de989bd912b596b238888bf454 (patch)
tree1133371fec631ba8648e922ba2c9da9326590b80
parent5e0aa9b1eced8cb37f735ed9efd5d1be607267b8 (diff)
On exit mesh editmode, the other objects using this mesh should get a
'redo softbody' signal.
-rw-r--r--source/blender/src/editmesh.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/src/editmesh.c b/source/blender/src/editmesh.c
index ecb632855bd..c00c7a952c6 100644
--- a/source/blender/src/editmesh.c
+++ b/source/blender/src/editmesh.c
@@ -46,6 +46,7 @@
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
+#include "DNA_object_force.h"
#include "DNA_screen_types.h"
#include "DNA_key_types.h"
#include "DNA_scene_types.h"
@@ -1243,11 +1244,14 @@ void load_editMesh(void)
eve= eve->next;
}
- /* clear deform or shade displists of all users */
+ /* remake softbody, clear deform or shade displists of all users */
if(me->id.us>1) {
Base *base;
for(base= G.scene->base.first; base; base= base->next) {
- if(base->object->data==me) freedisplist(&base->object->disp);
+ if(base->object->data==me) {
+ base->object->softflag |= OB_SB_REDO;
+ freedisplist(&base->object->disp);
+ }
}
}
/* we do make displist here for dependencies (like particles) */