[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1919] contrib/py/scripts/addons/ system_theme_manager.py: Bugfix for custom weight colours.
Bart Crouch
bartius.crouch at gmail.com
Fri May 13 14:57:59 CEST 2011
Revision: 1919
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1919
Author: crouch
Date: 2011-05-13 12:57:59 +0000 (Fri, 13 May 2011)
Log Message:
-----------
Bugfix for custom weight colours.
Reported by JoS.
Modified Paths:
--------------
contrib/py/scripts/addons/system_theme_manager.py
Modified: contrib/py/scripts/addons/system_theme_manager.py
===================================================================
--- contrib/py/scripts/addons/system_theme_manager.py 2011-05-13 10:58:18 UTC (rev 1918)
+++ contrib/py/scripts/addons/system_theme_manager.py 2011-05-13 12:57:59 UTC (rev 1919)
@@ -22,7 +22,7 @@
bl_info = {
'name': "Theme manager",
'author': "Bart Crouch",
- 'version': (1, 3, 0),
+ 'version': (1, 3, 1),
'blender': (2, 5, 7),
'api': 36489,
'location': "User Preferences > Themes > Header",
@@ -162,9 +162,8 @@
bpy.context.user_preferences.system.use_weight_color_range = False
color_range = bpy.context.user_preferences.system.weight_color_range
color_range.interpolation = 'LINEAR'
- for element in color_range.elements:
- if len(color_range.elements) > 1:
- color_range.elements.remove(element)
+ while len(color_range.elements) > 1:
+ color_range.elements.remove(color_range.elements[0])
if len(color_range.elements) == 1:
color_range.elements[0].position = 1.0
color_range.elements[0].color = [0.0, 1.0, 0.0, 0.0]
More information about the Bf-extensions-cvs
mailing list