Courtyard collisions shadow not rotating with the footprint when moving

Description

The courtyard collision shadow doesn't rotate with the item when moving and pressing R to rotate:

courtyard-rotate

Steps to reproduce

  1. Press M to start moving a footprint
  2. Press R to rotate
  3. Hover it over other footprints
  4. See that the collision shadow isn't in the correct orientation

image

KiCad Version

Application: KiCad PCB Editor (64-bit)

Version: (6.99.0-4537-g21fed9fc8c), release build

Libraries:
	wxWidgets 3.2.1
	FreeType 2.11.1
	HarfBuzz 4.2.0
	FontConfig 2.14.0
	libcurl/7.83.1-DEV Schannel zlib/1.2.12

Platform: Windows 10 (build 19044), 64-bit edition, 64 bit, Little endian, wxMSW

Build Info:
	Date: Nov 29 2022 06:20:37
	wxWidgets: 3.2.1 (wchar_t,wx containers)
	Boost: 1.79.0
	OCC: 7.6.0
	Curl: 7.83.1-DEV
	ngspice: 37
	Compiler: Visual C++ 1929 without C++ ABI

Build settings:
	KICAD_SPICE=ON