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 <mail@jlucke.com>2019-12-11 17:20:21 +0300
committerJacques Lucke <mail@jlucke.com>2019-12-11 17:20:21 +0300
commit3a1aec54a7d41d2569d65d9fe8baf825696a3095 (patch)
tree5ff1d02c299625442442ef448567f7de368c6ec0 /source/blender/functions/FN_generic_virtual_list_list_ref.h
parent2a25a0bd60f9de25868bc0fdc797fdbd7708a131 (diff)
cleanup
Diffstat (limited to 'source/blender/functions/FN_generic_virtual_list_list_ref.h')
-rw-r--r--source/blender/functions/FN_generic_virtual_list_list_ref.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/functions/FN_generic_virtual_list_list_ref.h b/source/blender/functions/FN_generic_virtual_list_list_ref.h
index 358b40ed780..a5dd0433bf4 100644
--- a/source/blender/functions/FN_generic_virtual_list_list_ref.h
+++ b/source/blender/functions/FN_generic_virtual_list_list_ref.h
@@ -76,6 +76,19 @@ class GenericVirtualListListRef {
return m_virtual_list_size;
}
+ uint sublist_size(uint index) const
+ {
+ BLI_assert(index < m_virtual_list_size);
+ switch (m_category) {
+ case Category::SingleArray:
+ return m_data.single_array.real_array_size;
+ case Category::FullArrayList:
+ return m_data.full_array_list.real_array_sizes[index];
+ }
+ BLI_assert(false);
+ return 0;
+ }
+
const CPPType &type() const
{
return *m_type;