oops, return values

This commit is contained in:
David Rose 2007-07-03 17:37:24 +00:00
parent 81ae62f553
commit 2088ca584a
2 changed files with 4 additions and 0 deletions

View File

@ -382,6 +382,7 @@ get_blend_value(const PartBundle *root) {
bool MovingPartMatrix::
apply_freeze(const TransformState *transform) {
_forced_channel = new AnimChannelMatrixFixed(get_name(), transform);
return true;
}
////////////////////////////////////////////////////////////////////
@ -398,6 +399,7 @@ apply_control(PandaNode *node) {
AnimChannelMatrixDynamic *chan = new AnimChannelMatrixDynamic(get_name());
chan->set_value_node(node);
_forced_channel = chan;
return true;
}
////////////////////////////////////////////////////////////////////

View File

@ -133,6 +133,7 @@ get_blend_value(const PartBundle *root) {
bool MovingPartScalar::
apply_freeze(const TransformState *transform) {
_forced_channel = new AnimChannelFixed<ACScalarSwitchType>(get_name(), transform->get_pos()[0]);
return true;
}
////////////////////////////////////////////////////////////////////
@ -149,6 +150,7 @@ apply_control(PandaNode *node) {
AnimChannelScalarDynamic *chan = new AnimChannelScalarDynamic(get_name());
chan->set_value_node(node);
_forced_channel = chan;
return true;
}
////////////////////////////////////////////////////////////////////