Fix has_filter of AnimationNode not being called in scripts
(cherry picked from commit c988deb3b1
)
This commit is contained in:
parent
ea8fa93809
commit
cd6764611c
|
@ -107,7 +107,7 @@
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="has_filter" qualifiers="virtual">
|
<method name="has_filter" qualifiers="virtual">
|
||||||
<return type="String" />
|
<return type="bool" />
|
||||||
<description>
|
<description>
|
||||||
Returns [code]true[/code] whether you want the blend tree editor to display filter editing on this node.
|
Returns [code]true[/code] whether you want the blend tree editor to display filter editing on this node.
|
||||||
</description>
|
</description>
|
||||||
|
|
|
@ -357,6 +357,9 @@ bool AnimationNode::is_path_filtered(const NodePath &p_path) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AnimationNode::has_filter() const {
|
bool AnimationNode::has_filter() const {
|
||||||
|
if (get_script_instance()) {
|
||||||
|
return get_script_instance()->call("has_filter");
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -427,7 +430,7 @@ void AnimationNode::_bind_methods() {
|
||||||
}
|
}
|
||||||
BIND_VMETHOD(MethodInfo("process", PropertyInfo(Variant::REAL, "time"), PropertyInfo(Variant::BOOL, "seek")));
|
BIND_VMETHOD(MethodInfo("process", PropertyInfo(Variant::REAL, "time"), PropertyInfo(Variant::BOOL, "seek")));
|
||||||
BIND_VMETHOD(MethodInfo(Variant::STRING, "get_caption"));
|
BIND_VMETHOD(MethodInfo(Variant::STRING, "get_caption"));
|
||||||
BIND_VMETHOD(MethodInfo(Variant::STRING, "has_filter"));
|
BIND_VMETHOD(MethodInfo(Variant::BOOL, "has_filter"));
|
||||||
|
|
||||||
ADD_SIGNAL(MethodInfo("removed_from_graph"));
|
ADD_SIGNAL(MethodInfo("removed_from_graph"));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue