Skip to content

Commit

Permalink
annotate object when adding it into the sceen
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierpuigf committed May 27, 2021
1 parent b16007e commit e776645
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Assets/Story Generator/Scripts/GraphExpander.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

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

object_inst = true;

ObjectAnnotator.AnnotateObj(newGo.transform);
ColorEncoding.EncodeGameObject(newGo);
}

Expand Down

0 comments on commit e776645

Please sign in to comment.