diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2013-04-12 21:21:31 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2013-04-12 21:21:31 +0400 |
commit | a305452275207a555d2812c3a5ea6647f0f594e4 (patch) | |
tree | 991400d761e7895e84841bfe63c5b9f71078dc9e /release | |
parent | 8f658d42643b5edb03d4ae16ca8f9f611b1fbf74 (diff) |
Paint refactoring commit, non-disruptive (in theory :p)
* Fix precision overflow issue with overlay previews,
* Expose alpha mask mapping to UI (still not functional but coming soon).
* More overlay refactoring:
Overlay now does minimal checking for texture refresh.
Instead, we now have invalidation flags to set an aspect of the brush
overlay as invalid. This is necessary because this way we will be able to
separate and preview different brush attributes on the overlays, using
different textures:
These attributes/aspects are:
Primary texture (main texture for sculpt, vertex, imapaint)
Secondary texture (mask/alpha texture for imapaint)
Cursor texture (cursor texture. It involves brush strength and curves)
Modified the relevant RNA property update functions and C update callback
functions to call the relevant cursor invalidation functions instead
of checking every frame for multiple properties.
Properties that affect this are:
Image changes, if image is used by current brush,
Texture slot changes, similarly
Curve changes,
Object mode change invalidates the cursor
Paint tool change invalidates the cursor.
These changes give slightly more invalidation cases than simply
comparing the relevant properties each frame, but these do not occur in
performance critical moments and it's a much more elegant system than
adding more variables to check per frame each time we add something on
the system.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_paint_common.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_paint_common.py b/release/scripts/startup/bl_ui/properties_paint_common.py index f2566b2f2f5..3b9256c6ec9 100644 --- a/release/scripts/startup/bl_ui/properties_paint_common.py +++ b/release/scripts/startup/bl_ui/properties_paint_common.py @@ -120,6 +120,12 @@ def brush_texture_settings(layout, brush, sculpt): def brush_mask_texture_settings(layout, brush): mask_tex_slot = brush.mask_texture_slot + layout.label(text="Mask Mapping:") + + # map_mode + layout.row().prop(mask_tex_slot, "mask_map_mode", text="") + layout.separator() + if brush.mask_texture: layout.label(text="Mask Mapping:") col = layout.column() |