feat: add more collider types + camera snapping fix
This commit is contained in:
@@ -59,10 +59,24 @@ namespace {
|
||||
|
||||
SceneManager::GetInstance().Destroy();
|
||||
}
|
||||
|
||||
void testCameraKeysDoNotEndEditGestures()
|
||||
{
|
||||
check(!EndsEditGesture({.keyReleased = true, .keyboardDrivesCamera = true}),
|
||||
"releasing a key while flying the editor camera must not capture an undo snapshot");
|
||||
check(EndsEditGesture({.keyReleased = true}), "releasing a key outside the viewport still ends an edit");
|
||||
check(EndsEditGesture({.keyboardDrivesCamera = true, .editPending = true}),
|
||||
"viewport shortcuts that edit (delete, duplicate) still end an edit");
|
||||
check(EndsEditGesture({.mouseReleased = true, .keyboardDrivesCamera = true}),
|
||||
"releasing the mouse after a viewport drag still ends an edit");
|
||||
check(!EndsEditGesture({.itemWasActive = true, .itemActive = true, .mouseReleased = true}),
|
||||
"nothing ends while an item is still being edited");
|
||||
}
|
||||
}
|
||||
|
||||
void RunEditorTests()
|
||||
{
|
||||
testUndoRedoRestoresEdits();
|
||||
testUndoHistoryIsCapped();
|
||||
testCameraKeysDoNotEndEditGestures();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user