[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3509] trunk/py/scripts/addons/ paint_palette.py: Changed attribute access from vertex_group_weight to unified_paint_settings .weight

Dany Lebel axonestudio at gmail.com
Tue Jun 19 15:21:29 CEST 2012


Revision: 3509
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3509
Author:   axon_d
Date:     2012-06-19 13:21:28 +0000 (Tue, 19 Jun 2012)
Log Message:
-----------
Changed attribute access from vertex_group_weight to unified_paint_settings.weight

Modified Paths:
--------------
    trunk/py/scripts/addons/paint_palette.py

Modified: trunk/py/scripts/addons/paint_palette.py
===================================================================
--- trunk/py/scripts/addons/paint_palette.py	2012-06-19 13:09:28 UTC (rev 3508)
+++ trunk/py/scripts/addons/paint_palette.py	2012-06-19 13:21:28 UTC (rev 3509)
@@ -23,8 +23,8 @@
 bl_info = {
     "name": "Paint Palettes",
     "author": "Dany Lebel (Axon D)",
-    "version": (0,9,0),
-    "blender": (2, 5, 8),
+    "version": (0,9,1),
+    "blender": (2, 63, 12),
     "location": "Image Editor and 3D View > Any Paint mode > Color Palette or Weight Palette panel",
     "description": "Palettes for color and weight paint modes",
     "warning": "",
@@ -77,7 +77,7 @@
 def update_weight_value():
     pp = bpy.context.scene.palette_props
     tt = bpy.context.tool_settings
-    tt.vertex_group_weight = pp.weight_value
+    tt.unified_paint_settings.weight = pp.weight_value
     return None
 
 
@@ -609,7 +609,7 @@
 
     def draw(self, context):
         palette_props = bpy.context.scene.palette_props
-        vertex_group_weight = bpy.context.tool_settings.vertex_group_weight
+        #vertex_group_weight = bpy.context.tool_settings.unified_paint_settings.weight
 
         layout = self.layout
         row = layout.row()
@@ -757,7 +757,8 @@
             pp.weight_9 = weight
         elif pp.current_weight_index == 10:
             pp.weight_10 = weight
-        bpy.context.tool_settings.vertex_group_weight = weight
+        bpy.context.tool_settings.unified_paint_settings.weight = weight
+        #bpy.context.tool_settings.vertex_group_weight = weight
         return None
 
     palette_name = StringProperty(



More information about the Bf-extensions-cvs mailing list