90void QQuick3DMorphTarget::setAttributes(MorphTargetAttributes attributes)
92 if (m_attributes == attributes)
95 m_attributes = attributes;
97 int flags = attributes;
99 m_numAttribs += flags & 0x1;
102 emit attributesChanged();
103 markDirty(MorphTargetAttributesDirty);
106QSSGRenderGraphObject *QQuick3DMorphTarget::updateSpatialNode(QSSGRenderGraphObject *node)
110 node =
new QSSGRenderMorphTarget();
112 QQuick3DObject::updateSpatialNode(node);
113 auto modelNode =
static_cast<QSSGRenderMorphTarget *>(node);
114 if (m_dirtyAttributes & WeightDirty)
115 modelNode->weight = m_weight;
116 if (m_dirtyAttributes & MorphTargetAttributesDirty)
117 modelNode->attributes = QSSGRenderMorphTarget::InputAttributes(
int(m_attributes));
119 m_dirtyAttributes = 0;