From 19939882faba8b6305762acb391e3229135b76d4 Mon Sep 17 00:00:00 2001 From: codereader Date: Mon, 4 Jan 2021 07:35:22 +0100 Subject: [PATCH] #5474: Fix "Natural Texture" producing stretched results due to uninitialised members in ShiftScaleRotation structure. --- include/ibrush.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/ibrush.h b/include/ibrush.h index 9fcf7f8804..d772c8f7a7 100644 --- a/include/ibrush.h +++ b/include/ibrush.h @@ -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