Editor: Invalidate selection if EditCursorMoved()-callback returned true

This allows position-induced shape- or property-changes to be reflected immediately.
directional-lights
Sven Eberhardt 2016-11-16 01:11:36 -05:00
parent 399a619e4c
commit a46ecc7b5b
1 changed files with 4 additions and 1 deletions

View File

@ -1253,7 +1253,10 @@ void C4ControlEMMoveObject::MoveObject(C4Object *moved_object, bool move_forced)
moved_object->xdir = moved_object->ydir = 0;
moved_object->Mobile = false;
C4AulParSet pars(C4VInt(old_x), C4VInt(old_y));
moved_object->Call(PSF_EditCursorMoved, &pars);
if (moved_object->Call(PSF_EditCursorMoved, &pars))
{
::Console.EditCursor.InvalidateSelection();
}
}
void C4ControlEMMoveObject::Execute() const