[Bf-extensions-cvs] [2a4f0769] blender-v2.82-release: Fix T73547: Removed Call To Deprecated Prop

Jeroen Bakker noreply at git.blender.org
Tue Feb 4 08:08:22 CET 2020


Commit: 2a4f0769e5c69ec3dd6173deacbf1de79f17d2a5
Author: Jeroen Bakker
Date:   Mon Feb 3 10:46:14 2020 +0100
Branches: blender-v2.82-release
https://developer.blender.org/rBA2a4f0769e5c69ec3dd6173deacbf1de79f17d2a5

Fix T73547: Removed Call To Deprecated Prop

`use_uv_as_generated` has been removed in blender 2.82, but there were 2
add-ons still setting it, what crashes the add-ons.

The affected addons were Sapling Tree and Curve Extra Objects.

Reviewed By: meta-androcto

Differential Revision: https://developer.blender.org/D6739

===================================================================

M	add_curve_extra_objects/add_curve_spirofit_bouncespline.py
M	add_curve_sapling/utils.py

===================================================================

diff --git a/add_curve_extra_objects/add_curve_spirofit_bouncespline.py b/add_curve_extra_objects/add_curve_spirofit_bouncespline.py
index 681734d9..97310799 100644
--- a/add_curve_extra_objects/add_curve_spirofit_bouncespline.py
+++ b/add_curve_extra_objects/add_curve_spirofit_bouncespline.py
@@ -890,7 +890,6 @@ def add_curve_object(
             spline.points[i].co = verts[i][0], verts[i][1], verts[i][2], 1
 
     scene.collection.objects.link(cur)
-    cur.data.use_uv_as_generated = True
     cur.data.resolution_u = resolution_u
     cur.data.fill_mode = 'FULL'
     cur.data.bevel_depth = bevel
diff --git a/add_curve_sapling/utils.py b/add_curve_sapling/utils.py
index 3dbe53af..a4beb313 100644
--- a/add_curve_sapling/utils.py
+++ b/add_curve_sapling/utils.py
@@ -1608,7 +1608,6 @@ def addTree(props):
     cu.fill_mode = 'FULL'
     cu.bevel_depth = bevelDepth
     cu.bevel_resolution = bevelRes
-    cu.use_uv_as_generated = True
 
     # Fix the scale of the tree now
     scaleVal = scale + uniform(-scaleV, scaleV)



More information about the Bf-extensions-cvs mailing list