copy menu didnt copy visible and initial states, physics margin was also missing...
authorCampbell Barton <ideasman42@gmail.com>
Mon, 15 Sep 2008 09:24:54 +0000 (09:24 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 15 Sep 2008 09:24:54 +0000 (09:24 +0000)
source/blender/src/editobject.c

index e05d1c519d568b97adf8625bd4b4937da4fbaf95..2459f7ed23c8f22270e83a884e0e75f41baa72f3 100644 (file)
@@ -3283,6 +3283,9 @@ static void copymenu_logicbricks(Object *ob)
                                base->object->scavisflag= ob->scavisflag;
                                base->object->scaflag= ob->scaflag;
                                
+                               /* set the initial state */
+                               base->object->state= ob->state;
+                               base->object->init_state= ob->init_state;
                        }
                }
                base= base->next;
@@ -3519,6 +3522,7 @@ void copy_attr(short event)
                                        if (ob->gameflag & OB_BOUNDS) {
                                                base->object->boundtype = ob->boundtype;
                                        }
+                                       base->object->margin= ob->margin;
                                }
                                else if(event==17) {    /* tex space */
                                        copy_texture_space(base->object, ob);