瀏覽代碼

added this so I can make a root character for ships

Zachary Pavlov 17 年之前
父節點
當前提交
894493de24
共有 2 個文件被更改,包括 3 次插入2 次删除
  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
 //     Function: Character::combine_with
-//       Access: Public, Virtual
+//       Access: Published, Virtual
 //  Description: Collapses this node with the other node, if possible,
 //  Description: Collapses this node with the other node, if possible,
 //               and returns a pointer to the combined node, or NULL
 //               and returns a pointer to the combined node, or NULL
 //               if the two nodes cannot safely be combined.
 //               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 *make_copy() const;
   virtual PandaNode *dupe_for_flatten() const;
   virtual PandaNode *dupe_for_flatten() const;
 
 
-  virtual PandaNode *combine_with(PandaNode *other); 
   virtual bool cull_callback(CullTraverser *trav, CullTraverserData &data);
   virtual bool cull_callback(CullTraverser *trav, CullTraverserData &data);
 
 
   virtual CPT(TransformState)
   virtual CPT(TransformState)
@@ -63,6 +62,8 @@ public:
                       Thread *current_thread) const;
                       Thread *current_thread) const;
 
 
 PUBLISHED:
 PUBLISHED:
+  virtual PandaNode *combine_with(PandaNode *other); 
+
   INLINE CharacterJointBundle *get_bundle(int i) const;
   INLINE CharacterJointBundle *get_bundle(int i) const;
   void merge_bundles(PartBundle *old_bundle, PartBundle *other_bundle);
   void merge_bundles(PartBundle *old_bundle, PartBundle *other_bundle);
   void merge_bundles(PartBundleHandle *old_bundle_handle, 
   void merge_bundles(PartBundleHandle *old_bundle_handle,