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)
This commit is contained in:
2006-06-12 20:01:18 +00:00
parent 98b8b876b6
commit b58998729b
10 changed files with 174 additions and 45 deletions

View File

@@ -3878,7 +3878,7 @@ static int Object_setAttr( BPy_Object * obj, char *name, PyObject * value )
flag &= OB_LOCK_LOCX | OB_LOCK_LOCY | OB_LOCK_LOCZ |
OB_LOCK_ROTX | OB_LOCK_ROTY | OB_LOCK_ROTZ |
OB_LOCK_SIZEX | OB_LOCK_SIZEY | OB_LOCK_SIZEZ;
OB_LOCK_SCALEX | OB_LOCK_SCALEY | OB_LOCK_SCALEZ;
object->protectflag = (short)flag;
return 0;