You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-06 17:25:19 +00:00
Merge pull request #100437 from KoBeWi/ruaninstancequestionmark
Add `is_instance()` helper method to Node
This commit is contained in:
@@ -821,6 +821,10 @@ public:
|
||||
void set_thread_safe(const StringName &p_property, const Variant &p_value);
|
||||
void notify_thread_safe(int p_notification);
|
||||
|
||||
/* HELPER */
|
||||
|
||||
bool is_instance() const { return !data.scene_file_path.is_empty(); }
|
||||
|
||||
// These inherited functions need proper multithread locking when overridden in Node.
|
||||
#ifdef DEBUG_ENABLED
|
||||
|
||||
|
||||
Reference in New Issue
Block a user