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>
commite3d73f6e62f4f9f57742858e2d46140180a67f3e
parentb57f5007eb170a92209197c86923880f21b9d25d
authorChristian Strømme <christian.stromme@qt.io>
committerChristian Strømme <christian.stromme@qt.io>
commit timeTue, 17 Mar 2026 13:18:29 +0100