Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2020-02-13 17:20:44 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-02-14 13:12:35 +0300
commitd9e4f5a7e8e925a9bc35184cf1228240d93b83f8 (patch)
treeddf1833cb91ac5f1ff952db5f9fe1bc4870a0571 /release
parent9fef5a2db43b7146c8c734fe15232c30fda3f796 (diff)
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
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_paint_common.py2
1 files changed, 1 insertions, 1 deletions
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