Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-06-13 00:01:18 +0400
committerTon Roosendaal <ton@blender.org>2006-06-13 00:01:18 +0400
commitb58998729bbc27dc978436596f81b4d1df899137 (patch)
tree6226d62110dfb7d42294f549df63d17a7b5eba07 /source/blender/src/transform.c
parent98b8b876b61995af8f8e349ac39fae653f8a8af4 (diff)
Last minute patch from Chris Want
Nkey "Properties Panel" now has Dimension ("Dim") buttons too. This reads from the actual bounding box value to see the size. Note that dimensions for animated & deformed objects will change per frame. (Cleaned up buttons layout for patch, and added support for Curve, Text and Surface objects)
Diffstat (limited to 'source/blender/src/transform.c')
-rwxr-xr-xsource/blender/src/transform.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/src/transform.c b/source/blender/src/transform.c
index 77dad5fb1e8..ad76cd332fd 100755
--- a/source/blender/src/transform.c
+++ b/source/blender/src/transform.c
@@ -1051,11 +1051,11 @@ static void protectedTransBits(short protectflag, float *vec)
static void protectedSizeBits(short protectflag, float *size)
{
- if(protectflag & OB_LOCK_SIZEX)
+ if(protectflag & OB_LOCK_SCALEX)
size[0]= 1.0f;
- if(protectflag & OB_LOCK_SIZEY)
+ if(protectflag & OB_LOCK_SCALEY)
size[1]= 1.0f;
- if(protectflag & OB_LOCK_SIZEZ)
+ if(protectflag & OB_LOCK_SCALEZ)
size[2]= 1.0f;
}