summaryrefslogtreecommitdiffstats
path: root/src/Runtime/res/DataModelMetadata
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2018-09-07 13:26:08 +0300
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2018-09-12 13:25:01 +0000
commit88b2d4f63f72c3c5c249ad13d32848bd3b2cb005 (patch)
treea781c5ba1e2a8a3945a6875c09a2bc9ae5a40b2c /src/Runtime/res/DataModelMetadata
parenta0223ae7dfd7f6d636192a057c0d88d5540d98e9 (diff)
Add fovhorizontal property to cameras
This is a boolean property. If it is true, the fov value will be interpreted as horizontal angle. Task-number: QT3DS-708 Change-Id: I5642c6cd2e32fb4d0872d0422b58077f0f8af2f7 Reviewed-by: Teemu Tamminen <teemu.tamminen@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Diffstat (limited to 'src/Runtime/res/DataModelMetadata')
-rw-r--r--src/Runtime/res/DataModelMetadata/en-us/MetaData.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Runtime/res/DataModelMetadata/en-us/MetaData.xml b/src/Runtime/res/DataModelMetadata/en-us/MetaData.xml
index e2cfd852..cdfb282c 100644
--- a/src/Runtime/res/DataModelMetadata/en-us/MetaData.xml
+++ b/src/Runtime/res/DataModelMetadata/en-us/MetaData.xml
@@ -46,6 +46,9 @@
<Property name="fov" formalName="Field of View" description="Viewing angle of the camera\n(how much it can see)" min="1" max="180" default="60">
<ShowIfEqual property="orthographic" value="False"/>
</Property>
+ <Property name="fovhorizontal" formalName="FOV Horizontal" description="Field of view angle orientation" type="Boolean" default="False">
+ <ShowIfEqual property="orthographic" value="False"/>
+ </Property>
<Property name="clipnear" formalName="Clipping Start" description="Near distance at which objects disappear" min="1" max="1000" default="10" />
<Property name="clipfar" formalName="Clipping End" description="Far distance at which objects disappear" default="5000" />
<Property name="scalemode" formalName="Scale Mode" description="Render more content as the layer expands\n(same size) or scale up the content (fit)" list="Same Size:Fit:Fit Horizontal:Fit Vertical" default="Fit" />