Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
Development Snapshot 0.2.2
-
None
-
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
For Gerrit Dashboard: QT3DS-439 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
211465,2 | Fix default value for shadow map resolution | 1.0 | qt3dstudio/qt3dstudio | Status: MERGED | +2 | 0 |
211638,2 | Make shadow map resolution property unanimatable | 1.0 | qt3dstudio/qt3dstudio | Status: MERGED | +2 | 0 |
214732,1 | Fix default value for shadow map resolution | wip/timeline | qt3dstudio/qt3dstudio | Status: ABANDONED | 0 | 0 |
214738,1 | Make shadow map resolution property unanimatable | wip/timeline | qt3dstudio/qt3dstudio | Status: ABANDONED | 0 | 0 |