Suppress false warning
This commit is contained in:
parent
0af5eb3b7f
commit
294c057ff9
1 changed files with 2 additions and 0 deletions
|
|
@ -355,12 +355,14 @@ template registerGodotField(classNameLit, classNameIdent, propNameLit,
|
||||||
let getFunc = GodotPropertyGetFunc(
|
let getFunc = GodotPropertyGetFunc(
|
||||||
getFunc: getFuncIdent
|
getFunc: getFuncIdent
|
||||||
)
|
)
|
||||||
|
{.push warning[ProveInit]: off.} # false warning, Nim bug
|
||||||
var attr = GodotPropertyAttributes(
|
var attr = GodotPropertyAttributes(
|
||||||
typ: ord(godotVariantType(propTypeIdent)),
|
typ: ord(godotVariantType(propTypeIdent)),
|
||||||
hintString: hintTipLit.toGodotString(),
|
hintString: hintTipLit.toGodotString(),
|
||||||
hint: GodotPropertyHint.hintIdent,
|
hint: GodotPropertyHint.hintIdent,
|
||||||
usage: GodotPropertyUsageFlags.usageIdent
|
usage: GodotPropertyUsageFlags.usageIdent
|
||||||
)
|
)
|
||||||
|
{.push warning[ProveInit]: on.}
|
||||||
when hasDefaultValue:
|
when hasDefaultValue:
|
||||||
attr.defaultValue = (defaultValueNode).toGodot()
|
attr.defaultValue = (defaultValueNode).toGodot()
|
||||||
godotScriptRegisterProperty(getNativeLibHandle(), classNameLit, propNameLit,
|
godotScriptRegisterProperty(getNativeLibHandle(), classNameLit, propNameLit,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue