Commit: d9e4f5a7e8e925a9bc35184cf1228240d93b83f8
Author: Philipp Oeser
Date:   Thu Feb 13 15:20:44 2020 +0100
Branches: master
https://developer.blender.org/rBd9e4f5a7e8e925a9bc35184cf1228240d93b83f8

Fix T73774: Error in Paint 'Clone from Image/UV Map' panel

This panel is not for 2D paint, IMAGEPAINT_PROJECT_LAYER_CLONE is only
ever used in projection painting, not 2D painting.
Add a proper poll for this.

Maniphest Tasks: T73774

Differential Revision: https://developer.blender.org/D6836

===================================================================

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 e82caccdfe1..24016061194 100644
--- a/release/scripts/startup/bl_ui/properties_paint_common.py
+++ b/release/scripts/startup/bl_ui/properties_paint_common.py
@@ -211,7 +211,7 @@ class ClonePanel(BrushPanel):
         settings = cls.paint_settings(context)
 
         mode = cls.get_brush_mode(context)
-        if mode in {'PAINT_TEXTURE', 'PAINT_2D'}:
+        if mode == 'PAINT_TEXTURE':
             brush = settings.brush
             return brush.image_tool == 'CLONE'
         return False

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to