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:
authorAntony Riakiotakis <kalast@gmail.com>2013-01-16 16:57:35 +0400
committerAntony Riakiotakis <kalast@gmail.com>2013-01-16 16:57:35 +0400
commitcb8158cce6a35adb06c6e003a43c686aa88ebc4d (patch)
treeb9294a00b7a785e8b0c0deaa9bbefe27b6556b8d /release/scripts/startup/bl_ui/properties_texture.py
parent2095b2cddba2bdad057ceef54a1046c522389ff5 (diff)
Unification of brush code
* rename sculpt_brush_texture_settings to brush_texture_settings * Expose texture scale and offset in texture paint mode * Introduce still inactive mapping mode for texture paint, tiled and view aligned only. Projective paint uses only tiled, while 2d paint can use both. Commit will come that will use both appropriately for both modes, omitting fixed brush flag (which is tiled with another name)
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_texture.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_texture.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/properties_texture.py b/release/scripts/startup/bl_ui/properties_texture.py
index 6842b324b0e..6397ed4378e 100644
--- a/release/scripts/startup/bl_ui/properties_texture.py
+++ b/release/scripts/startup/bl_ui/properties_texture.py
@@ -30,7 +30,7 @@ from bpy.types import (Brush,
from rna_prop_ui import PropertyPanel
-from bl_ui.properties_paint_common import sculpt_brush_texture_settings
+from bl_ui.properties_paint_common import brush_texture_settings
class TEXTURE_MT_specials(Menu):
@@ -884,8 +884,8 @@ class TEXTURE_PT_mapping(TextureSlotPanel, Panel):
split.prop(tex, "object", text="")
if isinstance(idblock, Brush):
- if context.sculpt_object:
- sculpt_brush_texture_settings(layout, idblock)
+ if context.sculpt_object or context.image_paint_object:
+ brush_texture_settings(layout, idblock, context.sculpt_object)
else:
if isinstance(idblock, Material):
split = layout.split(percentage=0.3)