diff --git a/Editor/PaintToolWindow.cpp b/Editor/PaintToolWindow.cpp
index 25ecfcc3b..84f8c9034 100644
--- a/Editor/PaintToolWindow.cpp
+++ b/Editor/PaintToolWindow.cpp
@@ -1208,9 +1208,12 @@ void PaintToolWindow::Update(float dt)
const float weight2 = softbody->weights[i2];
XMVECTOR N0 = XMVectorZero(), N1 = XMVectorZero(), N2 = XMVectorZero();
wi::renderer::RenderableTriangle tri;
- XMStoreFloat3(&tri.positionA, SkinVertex(*mesh, *softbody, i0, &N0) + N0 * 0.01f);
- XMStoreFloat3(&tri.positionB, SkinVertex(*mesh, *softbody, i1, &N1) + N1 * 0.01f);
- XMStoreFloat3(&tri.positionC, SkinVertex(*mesh, *softbody, i2, &N2) + N2 * 0.01f);
+ XMVECTOR P0 = SkinVertex(*mesh, *softbody, i0, &N0);
+ XMVECTOR P1 = SkinVertex(*mesh, *softbody, i1, &N1);
+ XMVECTOR P2 = SkinVertex(*mesh, *softbody, i2, &N2);
+ XMStoreFloat3(&tri.positionA, P0 + N0 * 0.01f);
+ XMStoreFloat3(&tri.positionB, P1 + N1 * 0.01f);
+ XMStoreFloat3(&tri.positionC, P2 + N2 * 0.01f);
if (weight0 == 0)
tri.colorA = XMFLOAT4(1, 1, 0, 1);
else
diff --git a/README.md b/README.md
index 2866296e3..105e515fa 100644
--- a/README.md
+++ b/README.md
@@ -25,7 +25,7 @@ You can get the full source code by using Git version control and cloning https:
-
+
### Platforms:
- Windows 10 or newer
@@ -44,7 +44,7 @@ If you want to develop a C++ application that uses Wicked Engine, you can build
If you have questions or stuck, please use the `windows` communication channel on Discord: [](https://discord.gg/CFjRYmE)
-
+
#### Linux
To build the engine for Linux, use Cmake. You can find a sample build script for Ubuntu [here](.github/workflows/build.yml) (in the linux section). On the Linux operating system, you will need to ensure some additional dependencies are installed, such as Cmake (3.7 or newer), g++ compiler (C++ 17 compliant version) and SDL2. For Ubuntu 20.04, you can use the following commands to install dependencies: