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>2012-11-14 16:17:05 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-11-14 16:17:05 +0400
commite86e443caf949b6060196fe066756af866617620 (patch)
treef2c855934a0bff630baa14a841269dd67b9f0393 /modules/selection_utils.py
parent81ef518e009705d1cfbf4843e06c74553fd26f92 (diff)
use alternate syntax to clear lists
Diffstat (limited to 'modules/selection_utils.py')
-rw-r--r--modules/selection_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/selection_utils.py b/modules/selection_utils.py
index 3bf89816..eb85e869 100644
--- a/modules/selection_utils.py
+++ b/modules/selection_utils.py
@@ -46,7 +46,7 @@ class SelectionOrder(bpy.types.Operator):
if num == 0:
# Reset the list
- selected[:] = []
+ del selected[:]
elif num > self.num_selected:
# Get all the newly selected objects and add
new = [ob.name for ob in sel if ob.name not in selected]