Skip to content

Commit

Permalink
#5474: Fix "Natural Texture" producing stretched results due to unini…
Browse files Browse the repository at this point in the history
…tialised members in ShiftScaleRotation structure.
  • Loading branch information
codereader committed Jan 4, 2021
1 parent 7127ccb commit 1993988
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/ibrush.h
Expand Up @@ -96,6 +96,13 @@ struct ShiftScaleRotation
double shift[2];
double rotate;
double scale[2];

ShiftScaleRotation()
{
shift[0] = shift[1] = 0;
rotate = 0;
scale[0] = scale[1] = 1;
}
};

// Interface for a face plane
Expand Down

0 comments on commit 1993988

Please sign in to comment.