Uploaded image for project: 'Qt 3D Studio'
  1. Qt 3D Studio
  2. QT3DS-439

Shadow map resolution property lacks default value

    XMLWordPrintable

Details

    • 437c206fbfebd82785c52299a858bc033365cef9,a2eb69128aed9e6b5bc25cdf25bac36adb1a9c53

    Description

      Shadow map resolution got its own type introduced at some point, but the metadata lacks a default value for it.

      <Property name="shdwmapres" formalName="Shadow Resolution" description="Resolution of shadow map (powers of two)" type="ShadowMapResolution" />
      

      This means that:

      • in the editor the property shows up with no value in the combo box by default

      • the runtime still works but only because it uses the fallback default value hard-coded in C++

      The latter is not a real issue, but for the former, and to be consistent with how other properties work when there's a non-zero default value, the MetaData.xml would need the default attribute for shdwmapres as well:

      default="9"
      

      Attachments

        Activity

          People

            e0348803 Miikka Heikkinen
            lagocs Laszlo Agocs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: