From 2ca6b9c61028b10bd1b7821cd32f6fbf505d71d1 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 --- modules/gdscript/gdscript.cpp | 14 +++++++++----- modules/gdscript/gdscript.h | 2 +- modules/mono/csharp_script.cpp | 14 +++++++++----- modules/mono/csharp_script.h | 2 +- 4 files changed, 20 insertions(+), 12 deletions(-) diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp index 1aafaf9351c..15675760094 100644 --- a/modules/gdscript/gdscript.cpp +++ b/modules/gdscript/gdscript.cpp @@ -360,7 +360,7 @@ PlaceHolderScriptInstance *GDScript::placeholder_instance_create(Object *p_this) #ifdef TOOLS_ENABLED PlaceHolderScriptInstance *si = memnew(PlaceHolderScriptInstance(GDScriptLanguage::get_singleton(), Ref