92void QQuick3DMorphTarget::setAttributes(MorphTargetAttributes attributes)
94 if (m_attributes == attributes)
97 m_attributes = attributes;
99 int flags = attributes;
101 m_numAttribs += flags & 0x1;
104 emit attributesChanged();
105 markDirty(MorphTargetAttributesDirty);
108QSSGRenderGraphObject *QQuick3DMorphTarget::updateSpatialNode(QSSGRenderGraphObject *node)
112 node =
new QSSGRenderMorphTarget();
114 QQuick3DObject::updateSpatialNode(node);
115 auto modelNode =
static_cast<QSSGRenderMorphTarget *>(node);
116 if (m_dirtyAttributes & WeightDirty)
117 modelNode->weight = m_weight;
118 if (m_dirtyAttributes & MorphTargetAttributesDirty)
119 modelNode->attributes = QSSGRenderMorphTarget::InputAttributes(
int(m_attributes));
121 m_dirtyAttributes = 0;