1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

Merge pull request #111339 from HolonProduction/obj-pack

Bitpack more `Object` booleans
This commit is contained in:
Thaddeus Crews
2025-10-07 11:54:34 -05:00
2 changed files with 8 additions and 4 deletions

View File

@@ -252,7 +252,7 @@ Object::Connection::Connection(const Variant &p_variant) {
}
bool Object::_predelete() {
_predelete_ok = 1;
_predelete_ok = true;
notification(NOTIFICATION_PREDELETE, true);
if (!_predelete_ok) {
return false;
@@ -2394,7 +2394,7 @@ Object::~Object() {
ObjectDB::remove_instance(this);
_instance_id = ObjectID();
}
_predelete_ok = 2;
_predelete_ok = true;
if (_instance_bindings != nullptr) {
for (uint32_t i = 0; i < _instance_binding_count; i++) {