Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Parborg <darkdefende@gmail.com>2021-01-26 20:21:12 +0300
committerSebastian Parborg <darkdefende@gmail.com>2021-01-26 20:21:12 +0300
commitabd6b1d7b281c85fce748e0535f1f769916cd9b3 (patch)
treee228ff3ac96e6aa9de6b776e9f4605e86d93fcbd /source/blender/blenlib/BLI_float4x4.hh
parent6d40d7218971b558074eb418afd244ab13ab8fbf (diff)
Fix T85049: Geometry Nodes: How to handle instances with shear?
Use transform matrices instead of loc, rot, scale variables to store instance transforms. Reviewed By: JacquesLucke Differential Revision: http://developer.blender.org/D10211
Diffstat (limited to 'source/blender/blenlib/BLI_float4x4.hh')
-rw-r--r--source/blender/blenlib/BLI_float4x4.hh11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_float4x4.hh b/source/blender/blenlib/BLI_float4x4.hh
index 0433197b22a..d6d759ccfe4 100644
--- a/source/blender/blenlib/BLI_float4x4.hh
+++ b/source/blender/blenlib/BLI_float4x4.hh
@@ -45,6 +45,17 @@ struct float4x4 {
return &values[0][0];
}
+ using c_style_float4x4 = float[4][4];
+ c_style_float4x4 &ptr()
+ {
+ return values;
+ }
+
+ const c_style_float4x4 &ptr() const
+ {
+ return values;
+ }
+
friend float4x4 operator*(const float4x4 &a, const float4x4 &b)
{
float4x4 result;