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
path: root/source
diff options
context:
space:
mode:
authorDaniel Genrich <daniel.genrich@gmx.net>2008-04-09 19:28:46 +0400
committerDaniel Genrich <daniel.genrich@gmx.net>2008-04-09 19:28:46 +0400
commit9f6080cf1b12c1db36cc6c6001bb0a9404a07771 (patch)
tree113ada8a554502f8a1ec40f67af20b0fb672f785 /source
parente324cbd1e1599240629eb06de8889a2857911755 (diff)
Cloth/Collision modifier now gets add to the tail of the modifier stack as that is normal behaviour for all other modifiers, too.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/buttons_object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/buttons_object.c b/source/blender/src/buttons_object.c
index bd0c59dc6e8..c88f280f847 100644
--- a/source/blender/src/buttons_object.c
+++ b/source/blender/src/buttons_object.c
@@ -3303,7 +3303,7 @@ static void object_collision__enabletoggle ( void *ob_v, void *arg2 )
if(pd && (pd->deflect))
{
md = modifier_new ( eModifierType_Collision );
- BLI_addhead ( &ob->modifiers, md );
+ BLI_addtail ( &ob->modifiers, md );
DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA);
allqueue(REDRAWBUTSEDIT, 0);
allqueue(REDRAWVIEW3D, 0);
@@ -5164,7 +5164,7 @@ static void object_cloth__enabletoggle(void *ob_v, void *arg2)
if (!md) {
md = modifier_new(eModifierType_Cloth);
- BLI_addhead(&ob->modifiers, md);
+ BLI_addtail(&ob->modifiers, md);
DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA);
allqueue(REDRAWBUTSEDIT, 0);