diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2020-02-13 17:20:44 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2020-02-14 13:12:35 +0300 |
commit | d9e4f5a7e8e925a9bc35184cf1228240d93b83f8 (patch) | |
tree | ddf1833cb91ac5f1ff952db5f9fe1bc4870a0571 /release/scripts/startup/bl_ui/properties_paint_common.py | |
parent | 9fef5a2db43b7146c8c734fe15232c30fda3f796 (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/scripts/startup/bl_ui/properties_paint_common.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_paint_common.py | 2 |
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 |