Add is_instance() helper method to Node

This commit is contained in:
kobewi
2024-12-15 17:01:30 +01:00
parent 4d1f26e1fd
commit 11adf408ab
8 changed files with 29 additions and 26 deletions

View File

@ -818,6 +818,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