Pedro J. Estébanez
26edc6cd41
Promote object validity checks to release builds
...
Extra:
- Optimized the debug-only check about why the object is null to determine if it's because it has been deleted (the RC is enough; no need to check the ObjectDB).
- Because of the previous point. the debugger being attached is not required anymore for giving the "Object was deleted" error; from now, it only matters that it's a debug build.
- `is_instance_valid()` is now trustworthy. It will return `true` if, and only if, the last object assigned to a `Variant` is still alive (and not if a new object happened to be created at the same memory address of the old one).
- Replacements of `instance_validate()` are used where possible `Variant::is_invalid_object()` is introduced to help with that. (GDScript's `is_instance_valid()` is good.)
2021-09-21 10:39:04 +02:00
..
2021-08-18 23:19:44 +02:00
2021-07-06 11:10:47 +02:00
2021-09-21 10:39:04 +02:00
2021-09-06 09:34:50 -07:00
2021-08-16 13:02:36 +02:00
2021-08-27 01:27:07 +02:00
2021-08-27 01:27:07 +02:00
2021-07-14 11:43:23 +01:00
2021-07-14 11:43:23 +01:00
2021-06-16 11:56:25 +01:00
2021-05-04 16:30:23 +02:00
2021-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00
2021-07-14 23:09:47 +02:00
2021-05-04 16:30:23 +02:00
2021-05-04 16:30:23 +02:00
2021-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00
2021-05-04 16:30:23 +02:00
2021-07-20 13:58:07 +03:00
2021-08-17 09:02:06 +01:00
2021-01-13 16:17:06 +01:00
2021-05-05 15:02:01 +02:00
2021-07-14 11:43:23 +01:00
2021-05-05 15:02:01 +02:00
2021-05-04 14:45:16 +02:00
2021-06-03 15:45:05 +01:00
2021-01-13 16:17:06 +01:00
2021-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00
2021-07-14 21:49:23 +05:30
2021-06-29 14:02:23 +02:00
2021-08-15 20:00:31 -04:00
2021-07-30 15:35:39 +02:00
2021-01-13 16:17:06 +01:00
2021-05-05 15:02:01 +02:00
2021-09-14 13:41:26 +02:00
2020-06-10 15:30:52 +02:00
2021-05-05 15:02:01 +02:00
2021-06-16 11:56:25 +01:00
2021-05-04 14:45:16 +02:00
2021-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00
2021-05-04 14:45:16 +02:00
2021-07-09 11:43:05 -07:00
2021-05-05 15:02:01 +02:00
2021-05-04 16:39:13 +02:00
2021-01-13 16:17:06 +01:00
2021-09-21 10:39:04 +02:00
2021-09-21 10:39:04 +02:00
2021-09-21 10:39:04 +02:00
2021-05-04 16:30:23 +02:00
2021-05-05 15:22:40 +02:00
2021-05-04 16:30:23 +02:00
2021-05-22 08:16:43 +02:00
2021-05-04 14:45:16 +02:00
2021-01-13 16:17:06 +01:00
2021-01-13 16:17:06 +01:00
2021-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00
2021-05-04 16:30:23 +02:00
2021-05-05 15:02:01 +02:00
2021-08-17 09:02:06 +01:00
2021-05-05 15:02:01 +02:00
2021-05-04 16:30:23 +02:00
2021-08-10 10:08:24 +02:00
2021-05-04 14:45:16 +02:00
2021-05-05 15:02:01 +02:00
2021-05-04 14:45:16 +02:00
2021-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00
2021-05-20 13:29:38 +03:00
2021-01-13 16:17:06 +01:00
2021-08-06 13:24:02 +02:00
2021-08-12 16:45:48 +02:00
2021-05-04 14:45:16 +02:00
2021-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00
2021-02-19 11:48:30 +01:00
2021-05-04 14:45:15 +02:00
2021-05-05 15:02:01 +02:00
2021-05-04 14:45:16 +02:00
2021-05-05 15:02:01 +02:00
2021-08-02 15:18:30 +02:00
2021-05-14 15:15:25 +02:00
2021-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00
2021-05-04 14:45:16 +02:00
2021-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00
2021-05-04 14:45:16 +02:00
2021-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00
2021-07-20 13:05:13 +02:00
2021-05-04 14:45:16 +02:00
2021-06-16 11:56:25 +01:00
2021-05-05 15:02:01 +02:00
2021-05-04 14:45:16 +02:00
2021-08-18 00:46:51 +08:00
2021-08-18 00:46:51 +08:00
2021-07-13 10:20:03 +02:00
2021-05-05 15:02:01 +02:00
2021-09-21 10:39:04 +02:00
2021-09-21 10:39:04 +02:00
2021-07-06 11:24:06 +02:00
2021-08-03 09:33:25 +02:00
2021-09-21 10:39:04 +02:00
2021-09-21 10:39:04 +02:00
2021-05-05 15:02:01 +02:00
2021-01-13 16:17:06 +01:00
2021-05-05 15:02:01 +02:00
2021-05-05 15:02:01 +02:00