diff options
Diffstat (limited to 'src/quick3d/quick3drender/items/quick3dmaterial.cpp')
-rw-r--r-- | src/quick3d/quick3drender/items/quick3dmaterial.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick3d/quick3drender/items/quick3dmaterial.cpp b/src/quick3d/quick3drender/items/quick3dmaterial.cpp index c46b85e18..9f8fed800 100644 --- a/src/quick3d/quick3drender/items/quick3dmaterial.cpp +++ b/src/quick3d/quick3drender/items/quick3dmaterial.cpp @@ -37,7 +37,7 @@ QQmlListProperty<QParameter> Quick3DMaterial::qmlParameters() auto countFunction = [](QQmlListProperty<ListContentType> *list) -> qt_size_type { Quick3DMaterial *mat = qobject_cast<Quick3DMaterial *>(list->object); if (mat) - return mat->parentMaterial()->parameters().count(); + return mat->parentMaterial()->parameters().size(); return 0; }; auto atFunction = [](QQmlListProperty<ListContentType> *list, qt_size_type index) -> ListContentType * { |