Loosen up on requiring an explicit camera with layer mask
Setting an explicit camera should be the preferred solution, but we've
allowed for detection of "free" cameras since the beginning, so it's not
an uncommon pattern unfortunately. To avoid paper cuts when using the
layer mechanism, we now recover and print a warning when a non-explicit
camera has a layer mask. A warning will be issued to make the user is
aware that they are doing a sub-optimal thing in their code.
Pick-to: 6.11
Change-Id: I9a4d1e0b8b7598438bd6ca187f247d3e9519e0f7
Reviewed-by: Jonas Karlsson <jonas.karlsson@qt.io>