PCBNew - doesn't print layers correctly

Description

If you try to print your board layout and separate it by layer, you don't get your footprints included in the copper layers. Filled zones are not included in the print as well.

Steps to reproduce

  1. Select only copper layers in the print dialog
  2. Hit priview print to see what is going to be printed

KiCad Version

Application: KiCad

Version: (5.99.0-2848-gb60a7e2aca), release build

Libraries:
	wxWidgets 3.0.5

Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW

	wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8)
	Boost: 1.73.0
	OCE: 6.9.1
	Curl: 7.71.0
	ngspice: 32
	Compiler: GCC 10.2.0 with C++ ABI 1014

Build settings:
	KICAD_SCRIPTING=ON
	KICAD_SCRIPTING_MODULES=ON
	KICAD_SCRIPTING_PYTHON3=OFF
	KICAD_SCRIPTING_WXPYTHON=ON
	KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
	KICAD_SCRIPTING_ACTION_MENU=ON
	BUILD_GITHUB_PLUGIN=ON
	KICAD_USE_OCE=ON
	KICAD_SPICE=ON