Skip to content

Commit

Permalink
IVisible's Visible property now shows as true in the property grid
Browse files Browse the repository at this point in the history
fixes #1306
  • Loading branch information
vchelaru committed Jan 8, 2024
1 parent b93f44f commit e75038b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions FRBDK/Glue/Glue/SaveClasses/IElementExtensionMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,15 @@ public static object GetVariableValueRecursively(this GlueElement element, strin
foundValue = toReturn != null;
}
}

// special case - if the element is IVisible, and if the variable is Visible, then FRB will generate its default
// as true, so return that to match what is code genned:
if(variableName == "Visible" && element is EntitySave entity && entity.ImplementsIVisible)
{
toReturn = true;
foundValue = true;
}

if (!foundValue && variable != null)
{
// get the default value for the type:
Expand Down

0 comments on commit e75038b

Please sign in to comment.