From 6423ccff411d34273143177f917ea014d1c341f8 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sat, 6 Nov 2004 22:29:24 +0000 Subject: [PATCH] Fix, as reported by Martin; the 'make dupli real' code would also apply size and rotation. --- source/blender/src/editobject.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c index 2b5aaf9a2c3..2e87e81a7e8 100644 --- a/source/blender/src/editobject.c +++ b/source/blender/src/editobject.c @@ -2868,14 +2868,18 @@ void apply_object() ob= OBACT; if(ob==0) return; - if(ob->transflag & OB_DUPLI) make_duplilist_real(); - else { - if(okee("Apply deformation")==0) return; - object_apply_deform(ob); - allqueue(REDRAWVIEW3D, 0); - - return; + if(ob->transflag & OB_DUPLI) { + make_duplilist_real(); } + else { + if(okee("Apply deformation")==0) { + object_apply_deform(ob); + BIF_undo_push("Apply deformation"); + } + } + allqueue(REDRAWVIEW3D, 0); + + return; } if(okee("Apply size and rotation")==0) return;