Merge pull request #86649 from SGiygas/patch-1

Correct C# syntax in `_validate_property` example for the Object class
This commit is contained in:
Rémi Verschelde 2024-01-02 18:06:06 +01:00
commit 7fc37a8981
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -314,7 +314,7 @@
{
if (property["name"].AsStringName() == PropertyName.Number && IsNumberEditable)
{
var usage = property["usage"].As>PropertyUsageFlags<() | PropertyUsageFlags.ReadOnly;
var usage = property["usage"].As<PropertyUsageFlags>() | PropertyUsageFlags.ReadOnly;
property["usage"] = (int)usage;
}
}