mirror of
https://github.com/godotengine/godot.git
synced 2025-01-18 20:40:57 +08:00
Merge pull request #86649 from SGiygas/patch-1
Correct C# syntax in `_validate_property` example for the Object class
This commit is contained in:
commit
7fc37a8981
@ -314,7 +314,7 @@
|
|||||||
{
|
{
|
||||||
if (property["name"].AsStringName() == PropertyName.Number && IsNumberEditable)
|
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;
|
property["usage"] = (int)usage;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user