[Bf-committers] [14734] branches/apricot/source/blender: apricot request layer colors for active/used/empty color channels, colors are not that nice at the moment, so lucky we have artists!

GSR gsr.b3d at infernal-iceberg.com
Fri May 9 22:01:01 CEST 2008


Hi,
ideasman42 at gmail.com (2008-05-07 at 2321.48 +0200):
> apricot request layer colors for active/used/empty color channels, colors are not that nice at the moment, so lucky we have artists!

Oh, finally Blender could get extra info in layer buttons (if things
from apricot revert into trunk)? This must be the 3rd or so try
(intrr, plumi movie... anyone else?).
 
> Modified: branches/apricot/source/blender/makesdna/DNA_view3d_types.h
> ===================================================================
> --- branches/apricot/source/blender/makesdna/DNA_view3d_types.h	2008-05-07 21:21:15 UTC (rev 14733)
> +++ branches/apricot/source/blender/makesdna/DNA_view3d_types.h	2008-05-07 21:21:48 UTC (rev 14734)
> @@ -79,7 +79,8 @@
>  	float winmat1[4][4];  // persp(1) storage, for swap matrices
>  	float viewmat1[4][4];
>  	
> -	float viewquat[4], dist, zfac, pad0;	/* zfac is initgrabz() result */
> +	float viewquat[4], dist, zfac;	/* zfac is initgrabz() result */
> +	int lay_used; /* used while drawing */

Why does it need to be saved via SDNA per view instead of recomputed
as needed? The code seems to compute only which layers have objects,
so it can compute that once for all views as objects move to other
layers, etc.

> Modified: branches/apricot/source/blender/src/buttons_editing.c
> ===================================================================
> --- branches/apricot/source/blender/src/buttons_editing.c	2008-05-07 21:21:15 UTC (rev 14733)
> +++ branches/apricot/source/blender/src/buttons_editing.c	2008-05-07 21:21:48 UTC (rev 14734)
> @@ -5070,6 +5070,10 @@
>  	
>  	uiBlockEndAlign(block);
>  	
> +	uiDefButBitS(block, TOG, B_MESH_X_MIRROR, B_DIFF, "X-axis mirror",1125,0,150,19, &G.scene->toolsettings->editbutflag, 0, 0, 0, 0, "While using transforms, mirrors the transformation");
> +	uiDefButC(block, MENU, REDRAWBUTSEDIT, "Edge Alt-Select Mode%t|Loop Select%x0|Tag Edges%x1",1125,88,150,19, &G.scene->toolsettings->edge_mode, 0, 0, 0, 0, "Operation to use when Alt+Right clicking on edges");
> +	
> +	
>  	uiBlockBeginAlign(block);
>  	uiDefButBitI(block, TOG, G_ALLEDGES, 0, "All Edges",			1125, 22,150,19, &G.f, 0, 0, 0, 0, "Displays all edges in object mode without optimization");
>  	uiDefButBitS(block, TOG, B_MESH_X_MIRROR, B_DIFF, "X-axis mirror",1125,0,150,19, &G.scene->toolsettings->editbutflag, 0, 0, 0, 0, "While using transforms, mirrors the transformation");

How does this relate to layer buttons?

GSR
 


More information about the Bf-committers mailing list