diff options
| author | Juan Linietsky | 2016-05-27 14:18:40 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-05-27 14:19:11 -0300 |
| commit | 8be2fabbe5cd846bac5e5a38e55f3fb70e73f2da (patch) | |
| tree | a3e932282cdafdd13c4f02bdf21f72f9846adcbe /core/object.cpp | |
| parent | eb7227a20b27e91c6e2adfb1ded738f2dd7e453b (diff) | |
| download | godot-8be2fabbe5cd846bac5e5a38e55f3fb70e73f2da.tar.gz godot-8be2fabbe5cd846bac5e5a38e55f3fb70e73f2da.tar.zst godot-8be2fabbe5cd846bac5e5a38e55f3fb70e73f2da.zip | |
Diffstat (limited to 'core/object.cpp')
| -rw-r--r-- | core/object.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/object.cpp b/core/object.cpp index 3cfc0329b..d7878fd62 100644 --- a/core/object.cpp +++ b/core/object.cpp @@ -1756,6 +1756,7 @@ bool Object::is_queued_for_deletion() const { void Object::set_edited(bool p_edited) { _edited=p_edited; + _edited_version++; } bool Object::is_edited() const { @@ -1763,6 +1764,11 @@ bool Object::is_edited() const { return _edited; } + +uint32_t Object::get_edited_version() const { + + return _edited_version; +} #endif Object::Object() { @@ -1778,6 +1784,7 @@ Object::Object() { #ifdef TOOLS_ENABLED _edited=false; + _edited_version=0; #endif #ifdef DEBUG_ENABLED |
