mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 15:53:55 -04:00
chan: print out actual anim info when showing AnimBundleNode in ls()
This allows one to more easily discover the animations present in a scene graph, such as when using bam-info -ls to inspect a .bam file.
This commit is contained in:
parent
66b338c112
commit
9f9e1d8293
@ -68,6 +68,19 @@ find_anim_bundle(PandaNode *root) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
void AnimBundleNode::
|
||||
output(std::ostream &out) const {
|
||||
PandaNode::output(out);
|
||||
if (_bundle != nullptr) {
|
||||
out << " (";
|
||||
_bundle->output(out);
|
||||
out << ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Tells the BamReader how to create objects of type AnimBundleNode.
|
||||
*/
|
||||
|
@ -49,6 +49,8 @@ private:
|
||||
PT(AnimBundle) _bundle;
|
||||
|
||||
public:
|
||||
virtual void output(std::ostream &out) const;
|
||||
|
||||
static void register_with_read_factory();
|
||||
virtual void write_datagram(BamWriter* manager, Datagram &me);
|
||||
virtual int complete_pointers(TypedWritable **p_list,
|
||||
|
Loading…
x
Reference in New Issue
Block a user