From ccc1237e909223e8750e2a6a6e77f643062e3980 Mon Sep 17 00:00:00 2001 From: Pieter Hijma Date: Thu, 4 Sep 2025 17:39:24 +0200 Subject: [PATCH] Gui: Remove internal prop types Add Prop dialog This commit removes types from the list that have no editor and are meant for internal use. --- src/Gui/Dialogs/DlgAddProperty.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gui/Dialogs/DlgAddProperty.cpp b/src/Gui/Dialogs/DlgAddProperty.cpp index 265f34415a..34dd2f4e34 100644 --- a/src/Gui/Dialogs/DlgAddProperty.cpp +++ b/src/Gui/Dialogs/DlgAddProperty.cpp @@ -268,8 +268,8 @@ std::vector DlgAddProperty::getSupportedTypes() Base::Type::getAllDerivedFrom(Base::Type::fromName("App::Property"), allTypes); std::ranges::copy_if(allTypes, std::back_inserter(supportedTypes), - [](const Base::Type& type) { - return type.canInstantiate(); + [&](const Base::Type& type) { + return type.canInstantiate() && isTypeWithEditor(type); }); std::ranges::sort(supportedTypes, [](Base::Type a, Base::Type b) {