Correct error from texface removal

Missed stencil layer
This commit is contained in:
Campbell Barton 2017-07-13 19:28:20 +10:00
parent a3240df269
commit eb759730b1
1 changed files with 2 additions and 2 deletions

View File

@ -1275,7 +1275,7 @@ class VIEW3D_PT_stencil_projectpaint(View3DPanel, Panel):
col = layout.column()
col.active = ipaint.use_stencil_layer
stencil_text = mesh.uv_texture_stencil.name if mesh.uv_texture_stencil else ""
stencil_text = mesh.uv_layer_stencil.name if mesh.uv_layer_stencil else ""
col.label("UV Map")
col.menu("VIEW3D_MT_tools_projectpaint_stencil", text=stencil_text, translate=False)
@ -1878,7 +1878,7 @@ class VIEW3D_MT_tools_projectpaint_stencil(Menu):
layout = self.layout
for i, uv_layer in enumerate(context.active_object.data.uv_layers):
props = layout.operator("wm.context_set_int", text=uv_layer.name, translate=False)
props.data_path = "active_object.data.uv_texture_stencil_index"
props.data_path = "active_object.data.uv_layer_stencil_index"
props.value = i