Browse Source

minor fix to Actor.flush() with controlJoints

David Rose 20 years ago
parent
commit
9cc19ba6af
1 changed files with 3 additions and 1 deletions
  1. 3 1
      panda/src/chan/animChannelMatrixDynamic.cxx

+ 3 - 1
panda/src/chan/animChannelMatrixDynamic.cxx

@@ -38,7 +38,9 @@ AnimChannelMatrixDynamic::
 AnimChannelMatrixDynamic(AnimGroup *parent, const string &name)
   : AnimChannelMatrix(parent, name) 
 {
-  _last_value = _value = TransformState::make_identity();
+  _value = TransformState::make_identity();
+  _last_value = NULL;  // This is impossible; thus, has_changed() will
+                       // always return true the first time.
 }
 
 ////////////////////////////////////////////////////////////////////