Skip to content

Commit

Permalink
Fix true brush size for small, uneven brush sizes (#7129)
Browse files Browse the repository at this point in the history
* fix true brush size for uneven sizes

* update changelog
  • Loading branch information
philippotto authored Jun 8, 2023
1 parent 237ad6e commit aae1506
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released
- Fixed reading of some remote datasets where invalid data would follow valid gzip data, causing the decompression to fail. [#7119](https://github.com/scalableminds/webknossos/pull/7119)
- Fixed problems which could arise when annotating volume data at negative positions (which is not supported and is properly ignored now). [#7124](https://github.com/scalableminds/webknossos/pull/7124)
- Fixed some requests failing for streaming remote data via HTTP, which was observed when streaming data via Zarr from another WEBKNOSSOS instance. [#7125](https://github.com/scalableminds/webknossos/pull/7125)
- Fixed that the brush preview was inaccurate in some scenarios. [#7129](https://github.com/scalableminds/webknossos/pull/7129)

### Removed
- Support for [webknososs-connect](https://github.com/scalableminds/webknossos-connect) data store servers has been removed. Use the "Add Remote Dataset" functionality instead. [#7031](https://github.com/scalableminds/webknossos/pull/7031)
Expand Down
2 changes: 1 addition & 1 deletion frontend/javascripts/oxalis/shaders/segmentation.glsl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export const getBrushOverlay: ShaderModule = {
float dist = length((floor(worldCoordUVW.xy) - transDim(flooredMousePos).xy) * anisotropyFactorUVW.xy);
float radius = round(brushSizeInPixel / 2.0);
float radius = ceil(brushSizeInPixel / 2.0);
if (radius > dist) {
brushOverlayColor = vec4(vec3(1.0), 0.5);
}
Expand Down

0 comments on commit aae1506

Please sign in to comment.