diff options
Diffstat (limited to 'scene/main/node.h')
| -rw-r--r-- | scene/main/node.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scene/main/node.h b/scene/main/node.h index 32c5d8ef3..f1ecf497e 100644 --- a/scene/main/node.h +++ b/scene/main/node.h @@ -82,6 +82,9 @@ private: StringName name; SceneMainLoop *scene; bool inside_scene; +#ifdef TOOLS_ENABLED + NodePath import_path; //path used when imported, used by scene editors to keep tracking +#endif Viewport *viewport; @@ -269,11 +272,18 @@ public: void queue_delete(); +//shitty hacks for speed static void set_human_readable_collision_renaming(bool p_enabled); static void init_node_hrcr(); void force_parent_owned() { data.parent_owned=true; } //hack to avoid duplicate nodes +#ifdef TOOLS_ENABLED + void set_import_path(const NodePath& p_import_path); //path used when imported, used by scene editors to keep tracking + NodePath get_import_path() const; +#endif + + _FORCE_INLINE_ Viewport *get_viewport() const { return data.viewport; } /* CANVAS */ |
