Skip to content

Start Voronoi Texture 2D in the compositor - #257

Merged
BradyAJohnston merged 1 commit into
mainfrom
fix-voronoi-dimensions
Oct 9, 2026
Merged

BradyAJohnston merged 1 commit into
mainfrom
fix-voronoi-dimensions

Conversation

@BradyAJohnston

Copy link
Copy Markdown
Owner

c.VoronoiTexture() came out 3D, while Blender starts it 2D in the compositor (3D elsewhere). This is the same issue #256 fixed for Noise Texture, found by comparing against the tree-dependent properties listed in blender#163306. voronoi_dimensions is now left to Blender unless passed.

The constructor parity test now also compares enums in every tree type, so this kind of mismatch is caught. Menu Switch data_type is excluded on purpose: it defaults to FLOAT and takes its type from the factory (g.MenuSwitch.float(...)).

Bumps to 520.35.1.

Like Noise Texture, Voronoi starts 2D in the compositor and 3D
elsewhere, and one class serves both trees, so the constructor forced
3D. Leave voronoi_dimensions to Blender unless passed.

The constructor parity test now compares enums as well, so other
tree-dependent defaults are caught. Menu Switch's data_type is excluded:
nodebpy defaults it to FLOAT and takes the type from the factory.
@codspeed

codspeed Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 15 untouched benchmarks


Comparing fix-voronoi-dimensions (374da8a) with main (b829d52)

Open in CodSpeed

@BradyAJohnston BradyAJohnston changed the title Start Voronoi Texture 2D in the compositor (520.35.1) Start Voronoi Texture 2D in the compositor Oct 9, 2026
@BradyAJohnston
BradyAJohnston merged commit f9e6340 into main Oct 9, 2026
8 of 9 checks passed
@BradyAJohnston
BradyAJohnston deleted the fix-voronoi-dimensions branch October 9, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant