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.
This commit is contained in:
Pieter Hijma
2025-09-04 17:39:24 +02:00
committed by Kacper Donat
parent 964c6e08da
commit ccc1237e90

View File

@@ -268,8 +268,8 @@ std::vector<Base::Type> 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) {