Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work in post 2.8 versions of blender because of property annotation #1

Open
martyfouts opened this issue Mar 15, 2022 · 2 comments

Comments

@martyfouts
Copy link

Blender now requires that properties be annotations rather than assignments when they are initialized, meaning that anywhere there is a 'Foo = BARProperty(...)' statement the '=' has to change to a ':'. The symptom of this is that trying to use the addon produces

line 200, in execute seededRandomAngle = (self.rotation_angle_step * (random.Random(self.rotation_seed + obj_id).randint(1, 90))) % math.radians(360)

type error: unsupported operand types for +: '_PropertyDeferred' and 'int'

@Rudd-O
Copy link

Rudd-O commented Feb 9, 2024

Got bit by the same bug. Why hasn't this been fixed?

@16RoebuW
Copy link

Fixed it following Marty's advice and made a pull request, fork here: https://github.com/16RoebuW/blender-stacking-tool. I'm new to GitHub so if I need to credit anyone in a specific place please let me know, but the code works.

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

No branches or pull requests

3 participants