[Bf-blender-cvs] [04e61143c53] soc-2017-normal-tools: Fix broken UI code after recent refactor.
Bastien Montagne
noreply at git.blender.org
Mon Mar 5 22:12:58 CET 2018
Commit: 04e61143c5353c60ba7c3ae774e37a2b47b27b12
Author: Bastien Montagne
Date: Mon Mar 5 22:01:14 2018 +0100
Branches: soc-2017-normal-tools
https://developer.blender.org/rB04e61143c5353c60ba7c3ae774e37a2b47b27b12
Fix broken UI code after recent refactor.
===================================================================
M release/scripts/startup/bl_ui/space_view3d_toolbar.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 8343fa45f62..5d05d465873 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -476,14 +476,14 @@ class VIEW3D_PT_tools_normal(View3DPanel, Panel):
col.prop(toolsettings, "normal_vector", text="")
row = col.row(align=True)
- row.operator("mesh.custom_normal_tools", text="Copy").mode = "Copy"
- row.operator("mesh.custom_normal_tools", text="Paste").mode = "Paste"
+ row.operator("mesh.custom_normal_tools", text="Copy").mode = 'COPY'
+ row.operator("mesh.custom_normal_tools", text="Paste").mode = 'PASTE'
row = col.row(align=True)
- row.operator("mesh.custom_normal_tools", text="Multiply").mode = "Multiply"
- row.operator("mesh.custom_normal_tools", text="Add").mode = "Add"
+ row.operator("mesh.custom_normal_tools", text="Multiply").mode = 'MULTIPLY'
+ row.operator("mesh.custom_normal_tools", text="Add").mode = 'ADD'
- col.operator("mesh.custom_normal_tools", text="Reset").mode = "Reset"
+ col.operator("mesh.custom_normal_tools", text="Reset").mode = 'RESET'
col = layout.column(align=True)
col.operator("mesh.smoothen_custom_normals", text="Smoothen")
More information about the Bf-blender-cvs
mailing list