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)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user