From e776645c5f27536bbe5dad9518cc2d7410081146 Mon Sep 17 00:00:00 2001 From: Xavier Puig Date: Thu, 27 May 2021 18:58:42 +0200 Subject: [PATCH] annotate object when adding it into the sceen --- Assets/Story Generator/Scripts/GraphExpander.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Story Generator/Scripts/GraphExpander.cs b/Assets/Story Generator/Scripts/GraphExpander.cs index c1139701..bf254277 100644 --- a/Assets/Story Generator/Scripts/GraphExpander.cs +++ b/Assets/Story Generator/Scripts/GraphExpander.cs @@ -341,6 +341,7 @@ private void DoExpandScene(Transform transform, EnvironmentGraph graph, Environm newGo.transform.position = newGo.transform.position - loc + objc; object_inst = true; obj.transform = newGo.transform; + ObjectAnnotator.AnnotateObj(newGo.transform); ColorEncoding.EncodeGameObject(newGo); } @@ -358,7 +359,7 @@ private void DoExpandScene(Transform transform, EnvironmentGraph graph, Environm } object_inst = true; - + ObjectAnnotator.AnnotateObj(newGo.transform); ColorEncoding.EncodeGameObject(newGo); }