Merge pull request #95341 from esainane/valid-example
Fix check in `Object._ValidateProperty` example
This commit is contained in:
commit
f16c3d13b4
|
@ -341,7 +341,7 @@
|
|||
|
||||
public override void _ValidateProperty(Godot.Collections.Dictionary property)
|
||||
{
|
||||
if (property["name"].AsStringName() == PropertyName.Number && IsNumberEditable)
|
||||
if (property["name"].AsStringName() == PropertyName.Number && !IsNumberEditable)
|
||||
{
|
||||
var usage = property["usage"].As<PropertyUsageFlags>() | PropertyUsageFlags.ReadOnly;
|
||||
property["usage"] = (int)usage;
|
||||
|
|
Loading…
Reference in New Issue