diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2016-04-19 17:16:52 +0100 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2016-04-29 16:22:24 +0000 |
commit | 948d0357850918596b56f38a6dc6e25cd186f5a0 (patch) | |
tree | 2a522442757660b6eadecd3a6decde1f34ab5740 /src/render/materialsystem/qmaterial.cpp | |
parent | ae5ac1128bc61176f797f6e248d18b9ced051ad9 (diff) |
Strip out cloning subsystem
Change-Id: I4def54a11de0f9c676ef6b2d7bd8e723ded25ab9
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/materialsystem/qmaterial.cpp')
-rw-r--r-- | src/render/materialsystem/qmaterial.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/render/materialsystem/qmaterial.cpp b/src/render/materialsystem/qmaterial.cpp index 93518f602..3a1e75117 100644 --- a/src/render/materialsystem/qmaterial.cpp +++ b/src/render/materialsystem/qmaterial.cpp @@ -84,19 +84,6 @@ QMaterialPrivate::QMaterialPrivate() { } -void QMaterial::copy(const QNode *ref) -{ - QComponent::copy(ref); - const QMaterial *material = static_cast<const QMaterial*>(ref); - Q_FOREACH (QParameter *p, material->d_func()->m_parameters) - addParameter(qobject_cast<QParameter *>(QNode::clone(p))); - - // TO DO: We may want to copy the node id of the effect and only send a clone - // when we are the parent of the effect - if (material->d_func()->m_effect && material->d_func()->m_effect->parent() == ref) - setEffect(qobject_cast<QEffect *>(QNode::clone(material->d_func()->m_effect))); -} - QMaterial::QMaterial(QNode *parent) : QComponent(*new QMaterialPrivate, parent) { |