Show "Paste" context menu item even when only constraints are copied.

pull/19/head
whitequark 2016-06-20 13:47:14 +00:00
parent e0283b2d2e
commit 85cd44df3c
1 changed files with 2 additions and 2 deletions

View File

@ -614,7 +614,7 @@ void GraphicsWindow::MouseRightUp(double x, double y) {
} }
} }
if(SS.clipboard.r.n > 0 && LockedInWorkplane()) { if((SS.clipboard.r.n > 0 || SS.clipboard.c.n > 0) && LockedInWorkplane()) {
AddContextMenuItem("Paste", ContextCommand::PASTE); AddContextMenuItem("Paste", ContextCommand::PASTE);
AddContextMenuItem("Paste Transformed...", ContextCommand::PASTE_XFRM); AddContextMenuItem("Paste Transformed...", ContextCommand::PASTE_XFRM);
} }
@ -892,7 +892,7 @@ void GraphicsWindow::MouseLeftDown(double mx, double my) {
bool hasConstraintSuggestion = SS.GW.pending.hasSuggestion; bool hasConstraintSuggestion = SS.GW.pending.hasSuggestion;
// Make sure the hover is up to date. // Make sure the hover is up to date.
MouseMoved(mx, my, /*leftDown=*/false, /*middleDown=*/false, /*rightDown=*/false, MouseMoved(mx, my, /*leftDown=*/false, /*middleDown=*/false, /*rightDown=*/false,
/*shiftDown=*/false, /*ctrlDown=*/false); /*shiftDown=*/false, /*ctrlDown=*/false);
orig.mouse.x = mx; orig.mouse.x = mx;
orig.mouse.y = my; orig.mouse.y = my;