Skip to content

Commit

Permalink
fix(Highlighters): Use local scale of 1,1,1 to match parent size
Browse files Browse the repository at this point in the history
The copy highlighter needs a scale of 1,1,1 to match the size of the
parent, otherwise if the parent doesn't have a scale of 1,1,1
it'll be smaller/bigger than the parent.
  • Loading branch information
Ben Woodford committed Jan 16, 2017
1 parent 6bbe13e commit e333739
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ private void CreateHighlightModel()
highlightModel.transform.SetParent(transform);
highlightModel.transform.position = copyModel.transform.position;
highlightModel.transform.rotation = copyModel.transform.rotation;
highlightModel.transform.localScale = copyModel.transform.localScale;
highlightModel.transform.localScale = Vector3.one;

foreach (var component in copyModel.GetComponents<Component>())
{
Expand Down

0 comments on commit e333739

Please sign in to comment.