diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2018-12-15 11:47:24 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2018-12-19 15:53:12 +0300 |
commit | d211c9aa0aaa68fe126ce632746b705903d03173 (patch) | |
tree | fbcc4533fc4a62d2c75d3626594fae039cf3ad2d /source/blender/blenlib/intern/astar.c | |
parent | dad260c164adf0f86853e2f8046916739fccaffd (diff) |
BLI_bitmap: add functions operating on the whole bitmask.
There is no point having operations that iterate over the whole
bit array as macros, so convert BLI_BITMAP_SET_ALL to a function.
Also, add more utilities for copying and manipulating masks.
Reviewers: brecht, campbellbarton
Differential Revision: https://developer.blender.org/D4101
Diffstat (limited to 'source/blender/blenlib/intern/astar.c')
-rw-r--r-- | source/blender/blenlib/intern/astar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/astar.c b/source/blender/blenlib/intern/astar.c index ff4dfea2401..4a94c385b59 100644 --- a/source/blender/blenlib/intern/astar.c +++ b/source/blender/blenlib/intern/astar.c @@ -216,7 +216,7 @@ bool BLI_astar_graph_solve( r_solution->steps = 0; prev_nodes[node_index_src] = -1; - BLI_BITMAP_SET_ALL(done_nodes, false, as_graph->node_num); + BLI_bitmap_set_all(done_nodes, false, as_graph->node_num); copy_vn_fl(g_costs, as_graph->node_num, FLT_MAX); g_costs[node_index_src] = 0.0f; g_steps[node_index_src] = 0; |