diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-11-14 16:17:05 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-11-14 16:17:05 +0400 |
commit | e86e443caf949b6060196fe066756af866617620 (patch) | |
tree | f2c855934a0bff630baa14a841269dd67b9f0393 /modules | |
parent | 81ef518e009705d1cfbf4843e06c74553fd26f92 (diff) |
use alternate syntax to clear lists
Diffstat (limited to 'modules')
-rw-r--r-- | modules/selection_utils.py | 2 |
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] |