diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-25 04:04:19 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-03-25 04:04:19 +0300 |
commit | c594cfbe50497fdc365b3f327b643de507cda02f (patch) | |
tree | dab180e876b849f2ea66082e167e40f15f77a6fa /intern/ghost | |
parent | bbd787275ff5cfebacc859b0789acf769dab3a36 (diff) |
Cleanup: use array syntax for sizeof, zero before float suffix
Diffstat (limited to 'intern/ghost')
-rw-r--r-- | intern/ghost/intern/GHOST_XrControllerModel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_XrControllerModel.cpp b/intern/ghost/intern/GHOST_XrControllerModel.cpp index 78d81651e92..5be3a8e70ad 100644 --- a/intern/ghost/intern/GHOST_XrControllerModel.cpp +++ b/intern/ghost/intern/GHOST_XrControllerModel.cpp @@ -234,7 +234,7 @@ static void calc_node_transforms(const tinygltf::Node &gltf_node, {(float)dm[4], (float)dm[5], (float)dm[6], (float)dm[7]}, {(float)dm[8], (float)dm[9], (float)dm[10], (float)dm[11]}, {(float)dm[12], (float)dm[13], (float)dm[14], (float)dm[15]}}; - memcpy(r_local_transform, m, sizeof(float) * 16); + memcpy(r_local_transform, m, sizeof(float[4][4])); } else { /* No matrix is present, so construct a matrix from the TRS values (each one is optional). */ |