diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-27 05:50:50 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-27 05:50:50 +0400 |
commit | 6d195f61953fb9fa9c65514944f992c620bd449f (patch) | |
tree | 4b2634281c4071db316b8d05df0b728160d7a8fc /release | |
parent | 9d2b1af0a1aadb30a7be2f7a0ffe360e45a1e740 (diff) |
speedup for pyrna boolean checking.
if bpy.data.objects: ...
Would get loop over the entire collection, instead see if this collection has a single item.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/ui/space_info.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/release/scripts/ui/space_info.py b/release/scripts/ui/space_info.py index 500e80fe120..13045d5de6d 100644 --- a/release/scripts/ui/space_info.py +++ b/release/scripts/ui/space_info.py @@ -27,10 +27,6 @@ class INFO_HT_header(bpy.types.Header): layout = self.layout wm = context.manager - if wm and wm.operators: - last_op = wm.operators[-1] - else: - last_op = None window = context.window scene = context.scene rd = scene.render |