Fallback to ScriptInstance::get_property_state when get_property_state is not implemented in ScriptInstanceExtension
This commit is contained in:
parent
ce94b26de7
commit
e8c036beeb
1 changed files with 2 additions and 0 deletions
|
|
@ -818,7 +818,9 @@ public:
|
|||
virtual void get_property_state(List<Pair<StringName, Variant>> &state) override {
|
||||
if (native_info->get_property_state_func) {
|
||||
native_info->get_property_state_func(instance, _add_property_with_state, &state);
|
||||
return;
|
||||
}
|
||||
ScriptInstance::get_property_state(state);
|
||||
}
|
||||
|
||||
virtual void get_method_list(List<MethodInfo> *p_list) const override {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue