Browse Source

oops, return values

David Rose 18 years ago
parent
commit
2088ca584a
2 changed files with 4 additions and 0 deletions
  1. 2 0
      panda/src/chan/movingPartMatrix.cxx
  2. 2 0
      panda/src/chan/movingPartScalar.cxx

+ 2 - 0
panda/src/chan/movingPartMatrix.cxx

@@ -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;
 }
 
 ////////////////////////////////////////////////////////////////////

+ 2 - 0
panda/src/chan/movingPartScalar.cxx

@@ -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;
 }
 
 ////////////////////////////////////////////////////////////////////