mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
more verbose binding
This commit is contained in:
parent
c07ff46206
commit
50eb99ed62
@ -132,22 +132,38 @@ auto_bind(PandaNode *root_node, AnimControlCollection &controls,
|
|||||||
r_find_bundles(root_node, anims, parts);
|
r_find_bundles(root_node, anims, parts);
|
||||||
|
|
||||||
if (chan_cat.is_debug()) {
|
if (chan_cat.is_debug()) {
|
||||||
chan_cat.debug()
|
int anim_count = 0;
|
||||||
<< "Found " << anims.size() << " anims:\n";
|
|
||||||
Anims::const_iterator ai;
|
Anims::const_iterator ai;
|
||||||
|
for (ai = anims.begin(); ai != anims.end(); ++ai) {
|
||||||
|
anim_count += (int)(*ai).second.size();
|
||||||
|
}
|
||||||
|
chan_cat.debug()
|
||||||
|
<< "Found " << anim_count << " anims:\n";
|
||||||
for (ai = anims.begin(); ai != anims.end(); ++ai) {
|
for (ai = anims.begin(); ai != anims.end(); ++ai) {
|
||||||
chan_cat.debug(false)
|
chan_cat.debug(false)
|
||||||
<< " " << (*ai).first;
|
<< " " << (*ai).first;
|
||||||
|
if ((*ai).second.size() != 1) {
|
||||||
|
chan_cat.debug(false)
|
||||||
|
<< "*" << ((*ai).second.size());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
chan_cat.debug(false)
|
chan_cat.debug(false)
|
||||||
<< "\n";
|
<< "\n";
|
||||||
|
|
||||||
chan_cat.debug()
|
int part_count = 0;
|
||||||
<< "Found " << parts.size() << " parts:\n";
|
|
||||||
Parts::const_iterator pi;
|
Parts::const_iterator pi;
|
||||||
|
for (pi = parts.begin(); pi != parts.end(); ++pi) {
|
||||||
|
part_count += (int)(*pi).second.size();
|
||||||
|
}
|
||||||
|
chan_cat.debug()
|
||||||
|
<< "Found " << part_count << " parts:\n";
|
||||||
for (pi = parts.begin(); pi != parts.end(); ++pi) {
|
for (pi = parts.begin(); pi != parts.end(); ++pi) {
|
||||||
chan_cat.debug(false)
|
chan_cat.debug(false)
|
||||||
<< " " << (*pi).first;
|
<< " " << (*pi).first;
|
||||||
|
if ((*pi).second.size() != 1) {
|
||||||
|
chan_cat.debug(false)
|
||||||
|
<< "*" << ((*pi).second.size());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
chan_cat.debug(false)
|
chan_cat.debug(false)
|
||||||
<< "\n";
|
<< "\n";
|
||||||
|
@ -366,6 +366,28 @@ update() {
|
|||||||
return any_changed;
|
return any_changed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: PartBundle::force_update
|
||||||
|
// Access: Public
|
||||||
|
// Description: Updates all the parts in the bundle to reflect the
|
||||||
|
// data for the current frame, whether we believe it
|
||||||
|
// needs it or not.
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
bool PartBundle::
|
||||||
|
force_update() {
|
||||||
|
bool any_changed = do_update(this, NULL, true, true);
|
||||||
|
|
||||||
|
// Now update all the controls for next time.
|
||||||
|
ChannelBlend::const_iterator cbi;
|
||||||
|
for (cbi = _blend.begin(); cbi != _blend.end(); ++cbi) {
|
||||||
|
AnimControl *control = (*cbi).first;
|
||||||
|
control->mark_channels();
|
||||||
|
}
|
||||||
|
_anim_changed = false;
|
||||||
|
|
||||||
|
return any_changed;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: PartBundle::control_activated
|
// Function: PartBundle::control_activated
|
||||||
|
@ -125,6 +125,7 @@ public:
|
|||||||
|
|
||||||
void advance_time(double time);
|
void advance_time(double time);
|
||||||
bool update();
|
bool update();
|
||||||
|
bool force_update();
|
||||||
virtual void control_activated(AnimControl *control);
|
virtual void control_activated(AnimControl *control);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user