diff options
author | Martin Poirier <theeth@yahoo.com> | 2007-03-24 16:38:50 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2007-03-24 16:38:50 +0300 |
commit | d193ce012a8dc674211d9241213fbc16b7798303 (patch) | |
tree | b921a1a9bede5c6567e73c1453bf92ab266b428f /source/blender/include/BIF_transform.h | |
parent | f712172ac33778f1f7c57a5976975e20c9cc1015 (diff) |
Followup to Bugfix #6435 by Ton.
Added sensible way in calculateTransformCenter to report an error (including empty selection).
Diffstat (limited to 'source/blender/include/BIF_transform.h')
-rwxr-xr-x | source/blender/include/BIF_transform.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/include/BIF_transform.h b/source/blender/include/BIF_transform.h index 6d1b4e32658..3b5eeb6f35a 100755 --- a/source/blender/include/BIF_transform.h +++ b/source/blender/include/BIF_transform.h @@ -67,8 +67,11 @@ void initTransform(int mode, int context); void Transform(void); void Mirror(short mode); -/* Standalone call to get the transformation center corresponding to the current situation */ -void calculateTransformCenter(int centerMode, float *vec); +/* Standalone call to get the transformation center corresponding to the current situation + * returns 1 if successful, 0 otherwise (usually means there's no selection) + * (if 0 is returns, *vec is unmodified) + * */ +int calculateTransformCenter(int centerMode, float *vec); struct TransInfo; struct ScrArea; |