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:
authorJacques Lucke <jacques@blender.org>2020-07-25 15:51:15 +0300
committerJacques Lucke <jacques@blender.org>2020-07-25 15:51:15 +0300
commit0ae2a1d12affc382d9fef8aff0703bea891fa0fb (patch)
tree4d868840e7e84c2deb4b1b9d71ea44e550df7944 /source/blender/blenlib
parentd52e45c89e24af3751c286eb43791fa17636569a (diff)
Particles: improve emitter when object is animated
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/BLI_float4x4.hh5
-rw-r--r--source/blender/blenlib/BLI_multi_value_map.hh3
2 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_float4x4.hh b/source/blender/blenlib/BLI_float4x4.hh
index 5698d06f05d..b4f12f17cc2 100644
--- a/source/blender/blenlib/BLI_float4x4.hh
+++ b/source/blender/blenlib/BLI_float4x4.hh
@@ -93,6 +93,11 @@ struct float4x4 {
return result;
}
+ float4x4 inverted_transposed_affine() const
+ {
+ return this->inverted_affine().transposed();
+ }
+
struct float3x3_ref {
const float4x4 &data;
diff --git a/source/blender/blenlib/BLI_multi_value_map.hh b/source/blender/blenlib/BLI_multi_value_map.hh
index ca7a369ed29..c20c4ef9677 100644
--- a/source/blender/blenlib/BLI_multi_value_map.hh
+++ b/source/blender/blenlib/BLI_multi_value_map.hh
@@ -22,7 +22,8 @@
*
* A `blender::MultiValueMap<Key, Value>` is an unordered associative container that stores
* key-value pairs. It is different from `blender::Map` in that it can store multiple values for
- * the same key. The list of values that corresponds to a specific key can contain duplicates.
+ * the same key. The list of values that corresponds to a specific key can contain duplicates
+ * and their order is maintained.
*
* This data structure is different from a `std::multi_map`, because multi_map can store the same
* key more than once and MultiValueMap can't.