mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 13:12:42 +00:00
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
Block a user