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

Martin Poirier theeth at yahoo.com
Wed Dec 17 05:27:29 CET 2003


theeth (Martin Poirier) 2003/12/17 05:27:29 CET

  Modified files:
    blender/source/blender/src editobject.c 
  
  Log:
  Nathanael Law's fix to make numerical input more compatible with axis constraints.
  
  I thought this was a nice addition, so I'm commiting it.
  
  To Ton for easier changelog creation: When constraining to an axis, numerical input is limited (and will switch automaticly) to that axis.
  
  Original e-mail
  -------------------------------
  I was playing with the axis constraints for grab and scale transforms
  and I thought that the behavior was slightly illogical.  Without axis
  constraints, I think everything is great, but once a constraint is used
  some irregularities show up.  (Note, this is not a bug, it's more of a
  possible improvement)
  
  When you enter grab or scale mode, then constrain the transformation to
  a
  particular axis, then enter numeric entry mode by hitting a number or
  'n', there is no reason for you to try and edit the numeric value of a
  non-constrained axis which is the current behavior.
  
  E.g. You grab an object and want to move it along the z-axis, so you
  enter grab mode and either hit 'z' or the middle mouse button and you
  move the mouse to get an idea of how it looks.  You decide that you
  want to use a value of +4.2 with numeric entry; now you have to enter
  the following sequence: 'g', 'z', 'move mouse', 'tab', 'tab', '4.2',
  'enter'.  However, you're already constrained to the z-axis, so you
  should not have to enter 'tab', 'tab'.
  
  The included patch changes the behavior of grab and scale transforms so
  that if you are constrained to an axis, and enter numeric entry mode
  via
  'n' or by hitting a number, you will immediately begin editing the
  appropriate axis, and will not have to hit 'tab'.
  
  This may not seem like a big improvement (because it's not), but I feel
  that it improves the workflow of a commonly used task slightly and does
  not negatively impact any other aspects of the program.
  
  I welcome feedback on this idea.
  
  --
   - Nathanael Law <njlaw at xyrodian.com>
  
  Revision  Changes    Path
  1.49      +36 -1     blender/source/blender/src/editobject.c



More information about the Bf-blender-cvs mailing list