From 2d1943b8d1c6abcd19643a125b5e64e0a0d97fd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20J=2E=20Est=C3=A9banez?= Date: Sun, 13 Jun 2021 13:32:44 +0200 Subject: [PATCH] Fix slow load/save of scenes with many instances of the same script (cherry picked from commit 2ca6b9c61028b10bd1b7821cd32f6fbf505d71d1) --- modules/gdscript/gdscript.cpp | 14 +++++++++----- modules/gdscript/gdscript.h | 2 +- modules/mono/csharp_script.cpp | 14 +++++++++----- modules/mono/csharp_script.h | 3 ++- 4 files changed, 21 insertions(+), 12 deletions(-) diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp index 48bbb6a857c..39799d76f47 100644 --- a/modules/gdscript/gdscript.cpp +++ b/modules/gdscript/gdscript.cpp @@ -310,7 +310,7 @@ PlaceHolderScriptInstance *GDScript::placeholder_instance_create(Object *p_this) #ifdef TOOLS_ENABLED PlaceHolderScriptInstance *si = memnew(PlaceHolderScriptInstance(GDScriptLanguage::get_singleton(), Ref