bugfix [#20627] Sculting - Mesh without faces crashes

fix own error in py ui also
This commit is contained in:
2010-01-10 10:20:44 +00:00
parent 9da2c0c6c2
commit 40e9b1711b
2 changed files with 7 additions and 2 deletions

View File

@@ -803,8 +803,9 @@ class VIEW3D_PT_tools_weightpaint_options(View3DPanel):
col.prop(wpaint, "normals")
col.prop(wpaint, "spray")
if context.weight_paint_object.type == 'MESH':
col.prop(data, "use_mirror_x")
obj = context.weight_paint_object
if obj.type == 'MESH':
col.prop(obj.data, "use_mirror_x")
# Commented out because the Apply button isn't an operator yet, making these settings useless
# col.label(text="Gamma:")