Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Guetzkow <rjg>2020-12-05 11:48:04 +0300
committerRobert Guetzkow <gitcommit@outlook.de>2020-12-05 11:49:03 +0300
commit8c87cf0afccb2bb73a3575eaa58016cfec4e177a (patch)
tree7dfc68a8a7df9f255900258c4da4b01a977b652c /add_curve_sapling
parent6024a89ae2a5dbacb681874337e4bda2c3f86c25 (diff)
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
Diffstat (limited to 'add_curve_sapling')
-rw-r--r--add_curve_sapling/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/add_curve_sapling/__init__.py b/add_curve_sapling/__init__.py
index e5b88157..9bcd1492 100644
--- a/add_curve_sapling/__init__.py
+++ b/add_curve_sapling/__init__.py
@@ -701,7 +701,7 @@ class AddTree(Operator):
items=objectList,
update=update_leaves
)
- bend = FloatProperty(
+ bend: FloatProperty(
name='Leaf Bend',
description='The proportion of bending applied to the leaf (Bend)',
min=0.0,