Skip to content

Fix integer returns to int32#54

Merged
BradyAJohnston merged 5 commits into
mainfrom
int32
Oct 21, 2025
Merged

Fix integer returns to int32#54
BradyAJohnston merged 5 commits into
mainfrom
int32

Conversation

@BradyAJohnston

@BradyAJohnston BradyAJohnston commented Oct 17, 2025

Copy link
Copy Markdown
Owner

Previously the return types for attributes were only specified as np.array(dtype=int) or np.array(dtype=float). Blender itself is specific with data types, returning int32 and float32 from geometry nodes. This mostly wasn't a problem but was causing some platform-specific issues in tests / snapshots.

Regardless - we should be explicit and directly match return types to not falsely give the impression about what attribute types Blender is supporting & returning. This does break some snapshots that were printing attribute types as well as data, as well as some floating point rounding that is different between the types.

@BradyAJohnston BradyAJohnston linked an issue Oct 21, 2025 that may be closed by this pull request
@BradyAJohnston BradyAJohnston merged commit fe2162a into main Oct 21, 2025
30 of 31 checks passed
@BradyAJohnston BradyAJohnston deleted the int32 branch October 21, 2025 10:53
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.

Should only return int32 integers

1 participant