Blender Git Commit Log

Git Commits -> Revision f25b0df

Revision f25b0df by Alexander Ewering (master)
July 15, 2004, 13:31 (GMT)



Commit for the 4 aforementioned "features":

- "Global Pivot": Maintains a global Pivot and Align mode setting for
all 3d views when enabled, instead of seperate settings per 3d view

- "Auto Perspective": Switch to ortho mode automatically on 1/3/7, and
to Perspective when the view is rotated with the mouse

- "Align mode": As suggested on the list, when enabled, transformations
on several objects only transform their locations, not their sizes or
rotations.

- Grid dotted when not 1:1

***ATTENTION***! The User Interface parts of these features have not been
committed, as I work on my own modified UI here. The three features need
toggle buttons to turn them on and off.

I used the following 3 buttons (first two features are in userprefs,
third as a 3d view setting):

uiDefButBitS(block, TOG, USER_AUTOPERSP, B_DRAWINFO, "Auto Persp",
(xpos+edgespace+(3*medprefbut)+(3*midspace)+smallprefbut+2),y3+10,smallprefbut,buth,
&(U.uiflag), 0, 0, 0, 0,
"Automatically switch between orthographic and perspective");

uiDefButBitS(block, TOG, USER_LOCKAROUND, B_DRAWINFO, "Global Pivot",
(xpos+edgespace+(4*midspace)+(4*medprefbut)),y3+10,smallprefbut,buth,
&(U.uiflag), 0, 0, 0, 0,
"Use global pivot setting for all 3d views");

uiDefIconButS(block, TOG|BIT|10, B_AROUND, ICON_ALIGN,
xco+=XIC,0,XIC,YIC,
&G.vd->flag, 0, 0, 0, 0, "Translate only (align)");

Someone needs to add these to the interface in an appropriate manner!

Thanks.

Commit Details:

Full Hash: f25b0df75136aff38b7d4f46b1e8230b8d50c5f3
SVN Revision: 2810
Parent Commit: 3dbd149
Lines Changed: +233, -163

8 Modified Paths:

/source/blender/include/BIF_resources.h (+3, -2) (Diff)
/source/blender/makesdna/DNA_userdef_types.h (+3, -0) (Diff)
/source/blender/makesdna/DNA_view3d_types.h (+1, -0) (Diff)
/source/blender/src/drawview.c (+7, -3) (Diff)
/source/blender/src/editobject.c (+158, -152) (Diff)
/source/blender/src/space.c (+46, -0) (Diff)
/source/blender/src/toets.c (+13, -6) (Diff)
/source/blender/src/view.c (+2, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021