Blender Git Loki

Git Commits -> Revision a305452

Revision a305452 by Antonis Ryakiotakis (master)
April 12, 2013, 17:21 (GMT)
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.

Commit Details:

Full Hash: a305452275207a555d2812c3a5ea6647f0f594e4
SVN Revision: 55994
Parent Commit: 8f658d4
Lines Changed: +325, -199

27 Modified Paths:

/release/scripts/startup/bl_ui/properties_paint_common.py (+6, -0) (Diff)
/source/blender/blenkernel/BKE_paint.h (+18, -6) (Diff)
/source/blender/blenkernel/intern/brush.c (+3, -3) (Diff)
/source/blender/blenkernel/intern/colortools.c (+1, -0) (Diff)
/source/blender/blenkernel/intern/paint.c (+47, -7) (Diff)
/source/blender/editors/interface/interface_handlers.c (+3, -0) (Diff)
/source/blender/editors/render/render_update.c (+5, -0) (Diff)
/source/blender/editors/sculpt_paint/paint_cursor.c (+44, -62) (Diff)
/source/blender/editors/sculpt_paint/paint_image.c (+4, -4) (Diff)
/source/blender/editors/sculpt_paint/paint_image_2d.c (+1, -1) (Diff)
/source/blender/editors/sculpt_paint/paint_image_proj.c (+1, -1) (Diff)
/source/blender/editors/sculpt_paint/paint_ops.c (+15, -15) (Diff)
/source/blender/editors/sculpt_paint/paint_stroke.c (+11, -11) (Diff)
/source/blender/editors/sculpt_paint/paint_utils.c (+11, -4) (Diff)
/source/blender/editors/sculpt_paint/paint_vertex.c (+13, -13) (Diff)
/source/blender/editors/sculpt_paint/sculpt.c (+46, -46) (Diff)
/source/blender/editors/sculpt_paint/sculpt_uv.c (+5, -5) (Diff)
/source/blender/editors/space_buttons/buttons_context.c (+1, -1) (Diff)
/source/blender/editors/space_buttons/buttons_texture.c (+1, -1) (Diff)
/source/blender/editors/space_image/image_draw.c (+2, -2) (Diff)
/source/blender/editors/space_view3d/drawobject.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/view3d_edit.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_brush.c (+58, -6) (Diff)
/source/blender/makesrna/intern/rna_internal.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_texture.c (+20, -2) (Diff)
/source/blender/nodes/texture/node_texture_tree.c (+2, -2) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+4, -5) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021