Commit 9d5a5ab 1 parent f2b521f commit 9d5a5ab Copy full SHA for 9d5a5ab
File tree 1 file changed +8
-4
lines changed
include/godot_cpp/classes
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -274,23 +274,27 @@ public:
274
274
} \
275
275
\
276
276
static GDExtensionBool set_bind (GDExtensionClassInstancePtr p_instance, GDExtensionConstStringNamePtr p_name, GDExtensionConstVariantPtr p_value) { \
277
- if (p_instance && m_class::_get_set ()) { \
277
+ if (p_instance) { \
278
+ if (m_inherits::set_bind (p_instance, p_name, p_value)) { \
279
+ return true ; \
280
+ } \
278
281
if (m_class::_get_set () != m_inherits::_get_set ()) { \
279
282
m_class *cls = reinterpret_cast <m_class *>(p_instance); \
280
283
return cls->_set (*reinterpret_cast <const ::godot::StringName *>(p_name), *reinterpret_cast <const ::godot::Variant *>(p_value)); \
281
284
} \
282
- return m_inherits::set_bind (p_instance, p_name, p_value); \
283
285
} \
284
286
return false ; \
285
287
} \
286
288
\
287
289
static GDExtensionBool get_bind (GDExtensionClassInstancePtr p_instance, GDExtensionConstStringNamePtr p_name, GDExtensionVariantPtr r_ret) { \
288
- if (p_instance && m_class::_get_get ()) { \
290
+ if (p_instance) { \
291
+ if (m_inherits::get_bind (p_instance, p_name, r_ret)) { \
292
+ return true ; \
293
+ } \
289
294
if (m_class::_get_get () != m_inherits::_get_get ()) { \
290
295
m_class *cls = reinterpret_cast <m_class *>(p_instance); \
291
296
return cls->_get (*reinterpret_cast <const ::godot::StringName *>(p_name), *reinterpret_cast <::godot::Variant *>(r_ret)); \
292
297
} \
293
- return m_inherits::get_bind (p_instance, p_name, r_ret); \
294
298
} \
295
299
return false ; \
296
300
} \
You can’t perform that action at this time.
0 commit comments