mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Fixed crash using undo while dragging a new part.
This commit is contained in:
parent
d626048a64
commit
60aca425a0
1 changed files with 5 additions and 2 deletions
|
@ -1976,8 +1976,11 @@ void View::EndDrag(bool Accept)
|
|||
break;
|
||||
|
||||
case lcDragState::PIECE:
|
||||
ActiveModel->InsertPieceToolClicked(GetPieceInsertPosition(false, gMainWindow->GetCurrentPieceInfo()));
|
||||
break;
|
||||
{
|
||||
PieceInfo* Info = gMainWindow->GetCurrentPieceInfo();
|
||||
if (Info)
|
||||
ActiveModel->InsertPieceToolClicked(GetPieceInsertPosition(false, Info));
|
||||
} break;
|
||||
|
||||
case lcDragState::COLOR:
|
||||
ActiveModel->PaintToolClicked(FindObjectUnderPointer(true, false).Object);
|
||||
|
|
Loading…
Reference in a new issue