[Bf-blender-cvs] CVS commit: blender/source/blender/src editaction.c header_action.c

Chris Want cwant at ualberta.ca
Sat Jun 5 16:59:31 CEST 2004


hos (Chris Want) 2004/06/05 16:59:31 CEST

  Modified files:
    blender/source/blender/src editaction.c header_action.c 
  
  Log:
  Fixing something else broken broke: The fix for "no action == crash"
  prevented rvk editing to work in the action window.
  
  Please not that "if (act) {" (Does the object have an action? Currently
  only true for some armatures) and "if (key) {" (does the object have
  rvk's keys? Currently only true for meshes) are never both true at the
  same time so in the following snippet, the function foo_key() never gets
  executed:
  
  if (act) {
    if (key) {
      foo_key();
    else
      foo_bar();
    }
  }
  
  Better is this:
  
  if (key) {
    foo_key();
  else if (act) {
    foo_bar();
  }
  
  Revision  Changes    Path
  1.27      +21 -27    blender/source/blender/src/editaction.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/src/editaction.c.diff?r1=1.26&r2=1.27&cvsroot=bf-blender>
  1.16      +18 -22    blender/source/blender/src/header_action.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/src/header_action.c.diff?r1=1.15&r2=1.16&cvsroot=bf-blender>



More information about the Bf-blender-cvs mailing list