[Bf-blender-cvs] [753c449d418] temp-geometry-nodes-distribute-points-cleanup: InplacePriorityQueue: Add acces to the entire heap indices

Dalai Felinto noreply at git.blender.org
Wed Dec 16 11:50:32 CET 2020


Commit: 753c449d4184f426f01662179bea93ac3c505c35
Author: Dalai Felinto
Date:   Wed Dec 16 11:47:24 2020 +0100
Branches: temp-geometry-nodes-distribute-points-cleanup
https://developer.blender.org/rB753c449d4184f426f01662179bea93ac3c505c35

InplacePriorityQueue: Add acces to the entire heap indices

===================================================================

M	source/blender/blenlib/BLI_inplace_priority_queue.hh

===================================================================

diff --git a/source/blender/blenlib/BLI_inplace_priority_queue.hh b/source/blender/blenlib/BLI_inplace_priority_queue.hh
index 6147f7d0889..5641e33527e 100644
--- a/source/blender/blenlib/BLI_inplace_priority_queue.hh
+++ b/source/blender/blenlib/BLI_inplace_priority_queue.hh
@@ -200,6 +200,11 @@ class InplacePriorityQueue {
     return heap_to_orig_.as_span().drop_front(heap_size_);
   }
 
+  Span<int64_t> indices() const
+  {
+    return heap_to_orig_;
+  }
+
   /**
    * Return the heap used by the priority queue as dot graph string.
    * This exists for debugging purposes.



More information about the Bf-blender-cvs mailing list