forked from bartvdbraak/blender
sculpt mode ndof transforms.
please test, especially with multires conditions
This commit is contained in:
parent
a29188aa30
commit
7f6bb8d8cc
@ -486,7 +486,9 @@ bool GHOST_SystemCarbon::processEvents(bool waitForEvent)
|
||||
* are, but we get a lot of them
|
||||
*/
|
||||
if (i!='cgs ') {
|
||||
printf("Missed - Class: '%.4s', Kind: %d\n", &i, ::GetEventKind(event));
|
||||
if (i!='tblt') { // tablet event. we use the one packaged in the mouse event
|
||||
printf("Missed - Class: '%.4s', Kind: %d\n", &i, ::GetEventKind(event));
|
||||
}
|
||||
}
|
||||
}
|
||||
::ReleaseEvent(event);
|
||||
|
@ -1476,6 +1476,31 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
|
||||
do_layer_buttons(11); break;
|
||||
case ACCENTGRAVEKEY:
|
||||
do_layer_buttons(-1); break;
|
||||
|
||||
case NDOFMOTION:
|
||||
if (G.vd->ndofmode == 0) {
|
||||
viewmoveNDOF(1);
|
||||
} else if (G.vd->ndofmode == 1) {
|
||||
viewmoveNDOFfly(1);
|
||||
} else {
|
||||
if (OBACT) {
|
||||
ndof_transform();
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case NDOFBUTTON:
|
||||
if (val == 1) {
|
||||
G.vd->ndofmode +=1;
|
||||
if (G.vd->ndofmode > 2) /* we have currently 3 modes : 0 original, 1 fly, 2 transform */
|
||||
G.vd->ndofmode = 0;
|
||||
}
|
||||
if (val == 2) {
|
||||
G.vd->ndoffilter =(G.vd->ndoffilter == 1 ? 0 : 1);
|
||||
}
|
||||
allqueue(REDRAWHEADERS, 0);
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
/* Redraw buttons window as well as view 3d (for floating panel) */
|
||||
@ -1577,7 +1602,6 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
|
||||
ndof_transform();
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case NDOFBUTTON:
|
||||
|
@ -3184,13 +3184,7 @@ void ndof_do_transform(float *fval)
|
||||
special_aftertrans_update(&Trans);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (change) {
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
/* send events out for redraws */
|
||||
viewRedrawPost(&Trans);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user