Skip to content
Snippets Groups Projects
Commit 8c87cf0a authored by Robert Guetzkow's avatar Robert Guetzkow Committed by Robert Guetzkow
Browse files

Fix T83386: Use type annotation instead of assignment

The Sapling Tree Gen add-on previously assigned the `FloatProperty`
to `bend`. This caused accessing `bend` in calculations to return
a reference to the `FloatProperty` instead of its value. This
commit replaces the assignment with an annotation as it is the
correct usage since the Python API changes for Blender 2.80.

NOTE: The add-on currently has another problem T83360 which
prevents it from working. For the implementation of the patch
I had to comment out the usages of `props.leafDupliObj`.

Reviewed By: mont29

Differential Revision: https://developer.blender.org/D9747
parent 6024a89a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment