Skip to content

Commit e776645

Browse files
committed
annotate object when adding it into the sceen
1 parent b16007e commit e776645

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Assets/Story Generator/Scripts/GraphExpander.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ private void DoExpandScene(Transform transform, EnvironmentGraph graph, Environm
341341
newGo.transform.position = newGo.transform.position - loc + objc;
342342
object_inst = true;
343343
obj.transform = newGo.transform;
344+
ObjectAnnotator.AnnotateObj(newGo.transform);
344345
ColorEncoding.EncodeGameObject(newGo);
345346
}
346347

@@ -358,7 +359,7 @@ private void DoExpandScene(Transform transform, EnvironmentGraph graph, Environm
358359
}
359360

360361
object_inst = true;
361-
362+
ObjectAnnotator.AnnotateObj(newGo.transform);
362363
ColorEncoding.EncodeGameObject(newGo);
363364
}
364365

0 commit comments

Comments
 (0)