[Bf-committers] New Transform patch.

joeedh joeeagar at prodigy.net
Fri Feb 25 20:56:57 CET 2005


joeedh wrote:

> Hi.  Here is a patch that makes it so that constraints in the new 
> transform are enforced as you're picking them.  I find this to make 
> the new middlemouse constraint picking to be a lot more useable.
>
> joeedh

Oops, made patch off of HE Mesh sourcebase.  This new one is from a 
fresh CVS download.

joeedh
-------------- next part --------------
Index: blender/source/blender/src/transform.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/transform.c,v
retrieving revision 1.12
diff -r1.12 transform.c
85a86
> 
1174c1175
< 	unsigned short event;
---
> 	unsigned short event, conmode=0;
1247a1249
> 			if (conmode==1) chooseConstraint(&Trans);
1250a1253
> 
1263a1267,1269
> 					chooseConstraint(&Trans);
> 					conmode = 1;
> 					Trans.con.mode |= DRAWALL;
1333a1340,1341
> 					conmode = 0;
> 					Trans.con.mode &= ~DRAWALL;
Index: blender/source/blender/src/transform.h
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/transform.h,v
retrieving revision 1.8
diff -r1.8 transform.h
139a140
> #define DRAWALL			16
Index: blender/source/blender/src/transform_constraints.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/transform_constraints.c,v
retrieving revision 1.5
diff -r1.5 transform_constraints.c
310c310
< 	if (tc->mode & CONAXIS0) {
---
> 	if (tc->mode & (CONAXIS0|DRAWALL)) {
316c316
< 	if (tc->mode & CONAXIS1) {
---
> 	if (tc->mode & (CONAXIS1|DRAWALL)) {
322c322
< 	if (tc->mode & CONAXIS2) {
---
> 	if (tc->mode & (CONAXIS2|DRAWALL)) {
Index: blender/source/blender/src/transform_generics.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/transform_generics.c,v
retrieving revision 1.7
diff -r1.7 transform_generics.c
163,164c163
< 		}
< 		else if ELEM(G.obedit->type, OB_CURVE, OB_SURF) {
---
> 		} else if ELEM(G.obedit->type, OB_CURVE, OB_SURF) {
333c332
< 		col[0] = col[1] = col[2] = 200;
---
> 		col[0] = col[1] = col[2] = 245;
693c692
< }
\ No newline at end of file
---
> }


More information about the Bf-committers mailing list