Ver Fonte

added this so I can make a root character for ships

Zachary Pavlov há 17 anos atrás
pai
commit
894493de24
2 ficheiros alterados com 3 adições e 2 exclusões
  1. 1 1
      panda/src/char/character.cxx
  2. 2 1
      panda/src/char/character.h

+ 1 - 1
panda/src/char/character.cxx

@@ -126,7 +126,7 @@ dupe_for_flatten() const {
 
 ////////////////////////////////////////////////////////////////////
 //     Function: Character::combine_with
-//       Access: Public, Virtual
+//       Access: Published, Virtual
 //  Description: Collapses this node with the other node, if possible,
 //               and returns a pointer to the combined node, or NULL
 //               if the two nodes cannot safely be combined.

+ 2 - 1
panda/src/char/character.h

@@ -53,7 +53,6 @@ public:
   virtual PandaNode *make_copy() const;
   virtual PandaNode *dupe_for_flatten() const;
 
-  virtual PandaNode *combine_with(PandaNode *other); 
   virtual bool cull_callback(CullTraverser *trav, CullTraverserData &data);
 
   virtual CPT(TransformState)
@@ -63,6 +62,8 @@ public:
                       Thread *current_thread) const;
 
 PUBLISHED:
+  virtual PandaNode *combine_with(PandaNode *other); 
+
   INLINE CharacterJointBundle *get_bundle(int i) const;
   void merge_bundles(PartBundle *old_bundle, PartBundle *other_bundle);
   void merge_bundles(PartBundleHandle *old_bundle_handle,