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