From e85954e8a30908ed3a7dbe560d2ef714e9a44946 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 25 Apr 2024 17:04:36 +0200 Subject: [PATCH] App: Create PropertyMaterialList with a single material element --- src/App/PropertyStandard.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/App/PropertyStandard.cpp b/src/App/PropertyStandard.cpp index 07452a4de1..3117e5e739 100644 --- a/src/App/PropertyStandard.cpp +++ b/src/App/PropertyStandard.cpp @@ -2632,7 +2632,10 @@ TYPESYSTEM_SOURCE(App::PropertyMaterialList, App::PropertyLists) //************************************************************************** // Construction/Destruction -PropertyMaterialList::PropertyMaterialList() = default; +PropertyMaterialList::PropertyMaterialList() +{ + setSizeOne(); +} PropertyMaterialList::~PropertyMaterialList() = default;