Browse Source

missed copy updates

Zachary Pavlov 18 years ago
parent
commit
d76dc5dd28
2 changed files with 5 additions and 3 deletions
  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::
 PartBundle(const PartBundle &copy) :
 PartBundle(const PartBundle &copy) :
-  PartGroup(copy)
+  PartGroup(copy),
+  _modifies_anim_bundles(copy._modifies_anim_bundles)
 {
 {
   CDWriter cdata(_cycler, true);
   CDWriter cdata(_cycler, true);
   CDReader cdata_from(copy._cycler);
   CDReader cdata_from(copy._cycler);
@@ -70,7 +71,8 @@ PartBundle(const PartBundle &copy) :
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 PartBundle::
 PartBundle::
 PartBundle(const string &name) : 
 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:
 private:
 
 
+  //this is used to determine when to copy the anim bundle
   bool _modifies_anim_bundles;
   bool _modifies_anim_bundles;
 
 
-
   class CData;
   class CData;
 
 
   void do_set_control_effect(AnimControl *control, float effect, CData *cdata);
   void do_set_control_effect(AnimControl *control, float effect, CData *cdata);