File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -2727,6 +2727,22 @@ RotoPaint::onOverlayPenMotion(double time,
2727
2727
cursorSet = true ;
2728
2728
}
2729
2729
2730
+ switch (_imp->ui ->selectedTool ) {
2731
+ case eRotoToolSolidBrush:
2732
+ case eRotoToolEraserBrush:
2733
+ case eRotoToolClone:
2734
+ case eRotoToolReveal:
2735
+ case eRotoToolBlur:
2736
+ case eRotoToolSharpen:
2737
+ case eRotoToolSmear:
2738
+ case eRotoToolDodge:
2739
+ case eRotoToolBurn: {
2740
+ redraw = true ; // Those tools use the overlay to draw the tool
2741
+ }
2742
+ default :
2743
+ break ;
2744
+ } // switch
2745
+
2730
2746
if ( !cursorSet && _imp->ui ->showCpsBbox && (_imp->ui ->state != eEventStateDraggingControlPoint) && (_imp->ui ->state != eEventStateDraggingSelectedControlPoints)
2731
2747
&& ( _imp->ui ->state != eEventStateDraggingLeftTangent) &&
2732
2748
( _imp->ui ->state != eEventStateDraggingRightTangent) ) {
@@ -3161,7 +3177,15 @@ RotoPaint::onOverlayPenUp(double /*time*/,
3161
3177
**/
3162
3178
setCurrentCursor (eCursorBusy);
3163
3179
context->evaluateNeatStrokeRender ();
3164
- setCurrentCursor (eCursorDefault);
3180
+ if ( context->isRotoPaint () &&
3181
+ ( ( _imp->ui ->selectedRole == eRotoRoleMergeBrush) ||
3182
+ ( _imp->ui ->selectedRole == eRotoRoleCloneBrush) ||
3183
+ ( _imp->ui ->selectedRole == eRotoRolePaintBrush) ||
3184
+ ( _imp->ui ->selectedRole == eRotoRoleEffectBrush) ) ) {
3185
+ setCurrentCursor (eCursorCross);
3186
+ } else {
3187
+ setCurrentCursor (eCursorDefault);
3188
+ }
3165
3189
_imp->ui ->strokeBeingPaint ->setStrokeFinished ();
3166
3190
ret = true ;
3167
3191
}
You can’t perform that action at this time.
0 commit comments