Blender Git Commit Log
Git Commits -> Revision fa6fbf5
Revision fa6fbf5 by Antonis Ryakiotakis (soc-2013-paint) June 29, 2013, 11:08 (GMT) |
Drag dot strokes for image painting. This was mostly working with undo code. There is a tradeoff between doing undo traversal for images vs undo initialiatio time: The more area the user paints on, the more undo tiles are added to the system. That makes restoring of the image slower after each step. A way to optimize this is to completely delete the undo tiles after each step. This also will make the undo steps use less memory. However given that for a realistic, non-user-testing use case, the dabs will be localized, better optimize the initialization case. In projective texturing, which is the most performance hungry, indeed this helps with performance, provided the use case is sane. I left the clearing code ifdefed out just in case. Also exposed anchored stroke options. They work with texture coordinates well but not with paint brush size yet. |
Commit Details:
Full Hash: fa6fbf552fb9d6279320813d96050feed6fea172
SVN Revision: 57877
Parent Commit: c366cef
Lines Changed: +86, -39
9 Modified Paths:
/release/scripts/startup/bl_ui/space_image.py (+14, -5) (Diff)
/release/scripts/startup/bl_ui/space_view3d_toolbar.py (+3, -5) (Diff)
/source/blender/editors/sculpt_paint/paint_image.c (+33, -2) (Diff)
/source/blender/editors/sculpt_paint/paint_image_2d.c (+3, -1) (Diff)
/source/blender/editors/sculpt_paint/paint_image_proj.c (+18, -6) (Diff)
/source/blender/editors/sculpt_paint/paint_intern.h (+1, -0) (Diff)
/source/blender/editors/sculpt_paint/paint_ops.c (+4, -4) (Diff)
/source/blender/editors/sculpt_paint/paint_undo.c (+8, -0) (Diff)
/source/blender/makesrna/intern/rna_brush.c (+2, -16) (Diff)
/release/scripts/startup/bl_ui/space_view3d_toolbar.py (+3, -5) (Diff)
/source/blender/editors/sculpt_paint/paint_image.c (+33, -2) (Diff)
/source/blender/editors/sculpt_paint/paint_image_2d.c (+3, -1) (Diff)
/source/blender/editors/sculpt_paint/paint_image_proj.c (+18, -6) (Diff)
/source/blender/editors/sculpt_paint/paint_intern.h (+1, -0) (Diff)
/source/blender/editors/sculpt_paint/paint_ops.c (+4, -4) (Diff)
/source/blender/editors/sculpt_paint/paint_undo.c (+8, -0) (Diff)
/source/blender/makesrna/intern/rna_brush.c (+2, -16) (Diff)