Browse Source

Bugfix: Fix invalid HDR color check that caused things to error out in inspector

BearishSun 6 years ago
parent
commit
a519c3dfec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/EditorManaged/Windows/Inspector/InspectableColor.cs

+ 1 - 1
Source/EditorManaged/Windows/Inspector/InspectableColor.cs

@@ -33,7 +33,7 @@ namespace bs.Editor
             SerializableProperty property, InspectableFieldStyleInfo style)
             SerializableProperty property, InspectableFieldStyleInfo style)
             : base(context, title, path, SerializableProperty.FieldType.Color, depth, layout, property)
             : base(context, title, path, SerializableProperty.FieldType.Color, depth, layout, property)
         {
         {
-            hdr = style?.StyleFlags.HasFlag(SerializableFieldAttributes.HDR) ?? false;
+            hdr = style?.StyleFlags.HasFlag(InspectableFieldStyleFlags.HDR) ?? false;
         }
         }
 
 
         /// <inheritoc/>
         /// <inheritoc/>