From 2a4f0769e5c69ec3dd6173deacbf1de79f17d2a5 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker <jeroen@blender.org> Date: Mon, 3 Feb 2020 10:46:14 +0100 Subject: [PATCH] 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 --- add_curve_extra_objects/add_curve_spirofit_bouncespline.py | 1 - add_curve_sapling/utils.py | 1 - 2 files changed, 2 deletions(-) diff --git a/add_curve_extra_objects/add_curve_spirofit_bouncespline.py b/add_curve_extra_objects/add_curve_spirofit_bouncespline.py index 681734d9a..97310799b 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 3dbe53afe..a4beb313b 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) -- GitLab