diff options
author | Mahmoud Badri <mahmoud.badri@qt.io> | 2019-04-04 15:59:47 +0300 |
---|---|---|
committer | Mahmoud Badri <mahmoud.badri@qt.io> | 2019-04-05 12:59:03 +0000 |
commit | 0c0c438384343148ac74dfe14e16a814d02936e4 (patch) | |
tree | 4b189a66fce0bf9c2f61a0939ffd65651b2a634d /src/Runtime/res/DataModelMetadata | |
parent | c627989061ecb728765eb427b0d17307d4abcc65 (diff) |
Implement variants support for Models
Also some relevant tweaks here and there. Next: supporting variants on Groups, then Components.
Task-number: QT3DS-3234
Change-Id: I3943baef1118cecbcd4211b6eefca3d54b21a89e
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Runtime/res/DataModelMetadata')
-rw-r--r-- | src/Runtime/res/DataModelMetadata/en-us/MetaData.xml | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/src/Runtime/res/DataModelMetadata/en-us/MetaData.xml b/src/Runtime/res/DataModelMetadata/en-us/MetaData.xml index dfc1ccfa..0e003008 100644 --- a/src/Runtime/res/DataModelMetadata/en-us/MetaData.xml +++ b/src/Runtime/res/DataModelMetadata/en-us/MetaData.xml @@ -95,7 +95,7 @@ <Property name="sourcepath" formalName="Sub-Presentation" description="Presentation or QML stream to\nrender for this layer" type="Renderable" controllable="True" category="Basic Properties" /> <!-- Variant Tags --> - <Property name="variants" type="String" category="Variant Tags" /> + <Property name="variants" type="String" animatable="False" category="Variant Tags" /> <!-- Antialiasing --> <Property name="progressiveaa" formalName="Progressive AA" description="Improves the visual quality when no\nitems are moving" list="None:2x:4x:8x" default="None" category="Antialiasing" /> @@ -288,16 +288,23 @@ </ReferencedMaterial> <Model> <!-- Basic Properties --> - <Property name="name" formalName="Name" description="Object name" type="String" default="Light" hidden="False" category="Basic Properties" /> - <Property name="eyeball" formalName="Visible" description="Item visibility" type="Boolean" default="True" hidden="False" controllable="True" category="Basic Properties" /> - <Property name="opacity" formalName="Opacity" min="0" max="100" default="100" hidden="True" category="Basic Properties" /> - <Property name="position" formalName="Position" description="Location in local space" type="Vector" category="Basic Properties" /> - <Property name="rotation" formalName="Rotation" description="Rotation around local axes" type="Rotation" category="Basic Properties" /> - <Property name="scale" formalName="Scale" description="Size adjustments along local axes" type="Vector" default="1 1 1" category="Basic Properties" /> - <Property name="pivot" formalName="Pivot" description="Offset of the contents away from the local center" type="Vector" category="Basic Properties" /> - <Property name="sourcepath" formalName="Mesh" description="Geometry to use for this model" type="Mesh" category="Model"/> - <Property name="shadowcaster" formalName="Cast Shadows" description="Whether the model is a shadow caster or not" type="Boolean" default="True" category="Model"/> - <Property name="poseroot" hidden="True" type="Long" default="-1" category="Model"/> + <Property name="name" formalName="Name" type="String" default="Model" category="Basic Properties" description="Object name" /> + <Property name="eyeball" formalName="Visible" type="Boolean" default="True" category="Basic Properties" description="Item visibility" /> + <Property name="position" formalName="Position" type="Vector" category="Basic Properties" description="Location in local space" /> + <Property name="rotation" formalName="Rotation" type="Rotation" category="Basic Properties" description="Rotation around local axes" /> + <Property name="scale" formalName="Scale" type="Vector" default="1 1 1" category="Basic Properties" description="Size adjustments along local axes" /> + <Property name="pivot" formalName="Pivot" type="Vector" category="Basic Properties" description="Offset of the contents away from the local center" /> + <Property name="opacity" formalName="Opacity" min="0" max="100" default="100" category="Basic Properties" /> + + <!-- Variant Tags --> + <Property name="variants" type="String" animatable="False" category="Variant Tags" /> + + <!-- Model --> + <Property name="sourcepath" formalName="Mesh" type="Mesh" category="Model" description="Geometry to use for this model" /> + <Property name="shadowcaster" formalName="Cast Shadows" type="Boolean" default="True" category="Model" description="Whether the model is a shadow caster or not" /> + + <!-- Hidden and commented out props --> + <Property name="poseroot" hidden="True" type="Long" default="-1" category="Model" /> <!--<Property name="tessellation" formalName="Tessellation Mode" description="Type of tessellation to subdivide\nthe geometry" list="None:Linear:Phong:NPatch" default="None" /> <Property name="edgetess" formalName="Edge Tessellation" description="Max Tessellation amount" min="1" max="64" default="4" /> <Property name="innertess" formalName="Inner Tessellation" description="Min Tessellation amount" min="1" max="64" default="4" />--> |