Forráskód Böngészése

missed copy updates

Zachary Pavlov 18 éve
szülő
commit
d76dc5dd28
2 módosított fájl, 5 hozzáadás és 3 törlés
  1. 4 2
      panda/src/chan/partBundle.cxx
  2. 1 1
      panda/src/chan/partBundle.h

+ 4 - 2
panda/src/chan/partBundle.cxx

@@ -51,7 +51,8 @@ static ConfigVariableEnum<PartBundle::BlendType> anim_blend_type
 ////////////////////////////////////////////////////////////////////
 PartBundle::
 PartBundle(const PartBundle &copy) :
-  PartGroup(copy)
+  PartGroup(copy),
+  _modifies_anim_bundles(copy._modifies_anim_bundles)
 {
   CDWriter cdata(_cycler, true);
   CDReader cdata_from(copy._cycler);
@@ -70,7 +71,8 @@ PartBundle(const PartBundle &copy) :
 ////////////////////////////////////////////////////////////////////
 PartBundle::
 PartBundle(const string &name) : 
-  PartGroup(name)
+  PartGroup(name),
+  _modifies_anim_bundles(false)
 {
 }
 

+ 1 - 1
panda/src/chan/partBundle.h

@@ -140,9 +140,9 @@ protected:
 
 private:
 
+  //this is used to determine when to copy the anim bundle
   bool _modifies_anim_bundles;
 
-
   class CData;
 
   void do_set_control_effect(AnimControl *control, float effect, CData *cdata);