Skip to content

Fix for Godot 4.x#10

Open
majdisorder wants to merge 3 commits intorakai93:masterfrom
majdisorder:master
Open

Fix for Godot 4.x#10
majdisorder wants to merge 3 commits intorakai93:masterfrom
majdisorder:master

Conversation

@majdisorder
Copy link
Copy Markdown

@majdisorder majdisorder commented Dec 5, 2022

This PR Changes the type registration and header paths to play nice with the new Godot 4.x model.

! This will break the build for all Godot 3 branches including 3.5, however it should be able to build against the 3.x branch.

Build performed on Windows 11 and tested with the script described in README.md (! updated from original)

Voronoi Godot integration for Godot 4.x
=======================================

This fork upgrades the orginal [library](https://github.com/rakai93/godot_voronoi) to support Godot 4.x.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this should be re-written to exclude "this fork" before being merged back.

# Create voronoi generator
var points = PackedVector2Array([Vector2(0,0)])
for i in 100:
randomize()
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

randomize() only needs to be called once before the loop

func _draw():
# Iterate over sites
for site in diagram.sites():
randomize()
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

@rakai93
Copy link
Copy Markdown
Owner

rakai93 commented Dec 24, 2022

Thank you for providing this PR! I personally don't use the project anymore and I guess it should be re-written as a GDExtension at some point, but for now I'm glad you continued the work!

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.

2 participants