Datamodel - Added bool and enum support

Layer properties - Added bool support
Draggable float - Housekeeping 🙃
This commit is contained in:
Robert committed 2020-09-17 16:05:33 +02:00
1 parent e921aa2f79
commit 0ef871c337
14 files changed
+165 -9

No files matched your search

@@ -179,6 +179,9 @@ namespace Artemis.UI.Shared.Services
// Fall back on a VM that supports the type through conversion
if (match == null)
match = _registeredDataModelEditors.FirstOrDefault(d => d.CompatibleConversionTypes.Contains(propertyType));
// Lastly try getting an enum VM if the provided type is an enum
if (match == null && propertyType.IsEnum)
match = _registeredDataModelEditors.FirstOrDefault(d => d.SupportedType == typeof(Enum));
if (match != null)
{