g/sample: remember to forward generator objects in extent sampler
This commit is contained in:
parent
5d585d405f
commit
95f05cd632
@ -50,13 +50,13 @@ namespace cruft::geom::sample {
|
||||
|
||||
if (pos <= w) {
|
||||
auto const _w = pos;
|
||||
auto const _h = cruft::random::uniform (1) ? h : 0;
|
||||
auto const _h = cruft::random::uniform (1, gen) ? h : 0;
|
||||
return { _w, _h };
|
||||
}
|
||||
|
||||
pos -= w;
|
||||
|
||||
auto const _w = cruft::random::uniform (1) ? w : 0;
|
||||
auto const _w = cruft::random::uniform (1, gen) ? w : 0;
|
||||
auto const _h = pos;
|
||||
|
||||
return { _w, _h };
|
||||
|
Loading…
Reference in New Issue
Block a user