Browse Source

Bugfix: Fix generic inspector not rendering

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

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

@@ -28,7 +28,7 @@ namespace BansheeEditor
             {
                 SerializableObject serializableObject = new SerializableObject(InspectedObject.GetType(), InspectedObject);
                 inspectableFields = InspectableField.CreateFields(serializableObject, this, "", 0, Layout);
-                isEmpty = inspectableFields.Count > 0;
+                isEmpty = inspectableFields.Count == 0;
 
                 base.SetVisible(!isEmpty);
             }