mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
ClassDB: Workaround double-free for GDScript
This is a temporary hack until vnen and reduz can work on a proper fix.
The changes in 867d073b98 exposed a
GDScript issue, which apparently triggers an automatic unreferencing.
This hack only makes it possible to use the editor again, but GDScript
is still broken.
This commit is contained in:
@@ -1410,7 +1410,10 @@ Variant ClassDB::class_get_default_property_value(const StringName &p_class, con
|
||||
cleanup_c = false;
|
||||
} else if (ClassDB::can_instance(p_class)) {
|
||||
c = ClassDB::instance(p_class);
|
||||
cleanup_c = true;
|
||||
#ifndef _MSC_VER
|
||||
#warning FIXME: ObjectID refactoring broke GDScript handling of reference pointers, this needs a proper fix.
|
||||
#endif
|
||||
cleanup_c = (p_class != StringName("GDScript"));
|
||||
}
|
||||
|
||||
if (c) {
|
||||
|
||||
Reference in New Issue
Block a user