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:
authorCampbell Barton <ideasman42@gmail.com>2010-07-15 20:56:27 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-07-15 20:56:27 +0400
commit29f96aa28788a4fc8864c2518e972c5c7d1b5dcc (patch)
tree75795a36193853317448262e8817e2461a6660ad /curve_simplify.py
parentf15da84f3619b91098e60ab3ca369396cafd7196 (diff)
update for changes in blenders api.
Diffstat (limited to 'curve_simplify.py')
-rw-r--r--curve_simplify.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/curve_simplify.py b/curve_simplify.py
index 3cb2bfb8..175fffb9 100644
--- a/curve_simplify.py
+++ b/curve_simplify.py
@@ -288,7 +288,7 @@ def main(context, obj, options):
# create ne object and put into scene
newCurve = bpy.data.objects.new("simple_"+obj.name, curve)
scene.objects.link(newCurve)
- newCurve.selected = True
+ newCurve.select = True
scene.objects.active = newCurve
newCurve.matrix_world = obj.matrix_world
@@ -303,7 +303,7 @@ def main(context, obj, options):
def getFcurveData(obj):
fcurves = []
for fc in obj.animation_data.action.fcurves:
- if fc.selected:
+ if fc.select:
fcVerts = [vcVert.co.copy().resize3D()
for vcVert in fc.keyframe_points.values()]
fcurves.append(fcVerts)
@@ -312,7 +312,7 @@ def getFcurveData(obj):
def selectedfcurves(obj):
fcurves_sel = []
for i, fc in enumerate(obj.animation_data.action.fcurves):
- if fc.selected:
+ if fc.select:
fcurves_sel.append(fc)
return fcurves_sel