[Bf-blender-cvs] [fc96283c1c6] blender2.8: Fix painting clone ui/rna not working
Dalai Felinto
noreply at git.blender.org
Fri Sep 28 21:37:14 CEST 2018
Commit: fc96283c1c6cb4dc210e5ab9a535e7810b57cc7a
Author: Dalai Felinto
Date: Fri Sep 28 16:34:12 2018 -0300
Branches: blender2.8
https://developer.blender.org/rBfc96283c1c6cb4dc210e5ab9a535e7810b57cc7a
Fix painting clone ui/rna not working
===================================================================
M release/scripts/startup/bl_ui/properties_paint_common.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_paint_common.py b/release/scripts/startup/bl_ui/properties_paint_common.py
index 7649925b52b..aa53bc44750 100644
--- a/release/scripts/startup/bl_ui/properties_paint_common.py
+++ b/release/scripts/startup/bl_ui/properties_paint_common.py
@@ -98,7 +98,7 @@ class VIEW3D_MT_tools_projectpaint_clone(Menu):
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_clone_index"
+ props.data_path = "active_object.data.uv_layer_clone_index"
props.value = i
@@ -182,7 +182,7 @@ def brush_texpaint_common(panel, context, layout, brush, settings, projpaint=Fal
elif settings.mode == 'IMAGE':
mesh = ob.data
- clone_text = mesh.uv_texture_clone.name if mesh.uv_texture_clone else ""
+ clone_text = mesh.uv_layer_clone.name if mesh.uv_layer_clone else ""
col.label(text="Source Clone Image")
col.template_ID(settings, "clone_image")
col.label(text="Source Clone UV Map")
More information about the Bf-blender-cvs
mailing list