1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Bitpack more Object booleans

This commit is contained in:
HolonProduction
2025-10-06 22:01:22 +02:00
parent ef5cd99604
commit 7b2e148687
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;
@@ -2349,7 +2349,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++) {