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
AgeCommit message (Collapse)Author
2013-12-10Refactoring/cleanup, borrowed from soc-2013-paint branch.Antony Riakiotakis
* Move symmetry options to the paint struct (where all paint systems can make use of it) * Rename draw_pressure to stroke_active. This is what is really checked on those occasions that this is used. Also move turning on/off of this option to the stroke level and avoid doing it on every stroke system. * Rename BRUSH_RESTORE_MESH to BRUSH_DRAG_DOT. In image painting this won't restore any mesh, so better have a name that is directly linked to what the flag actually does.
2013-09-16Undo the front-facing only commit for clay strips brushes, it adds anAntony Riakiotakis
attenuation that should really be optional. There's also a minor performance penalty and all this only for one problematic case. In case the tool flattens two surfaces, users can manually set the front face only option. A better non-attenuating way to cull such vertices can be added later. Also flatten brush should calculate the flatten plane from the original vertices or the flattening will not converge for planes offsets different than zero. Reported by Michalis Zissiou, thanks!
2013-09-14fix weird issue after last commit where grab brush would not work andAntony Riakiotakis
also warnings fix and description fix.
2013-09-14Sculpting:Antony Riakiotakis
* Cleanup for previous commit and reduce some local variable referencing * Add support for brushes that operate on frontfaces only and do not show the option for those brushes. Currently only clay strips is in the list but this may change according to artist feedback. This should take care of the "sticky" surface problem completely.
2013-09-12code cleanup: set enums as static or add RNA_enum_types.h where they are ↵Campbell Barton
used elsewhere. also minor style cleanup.
2013-08-02Some versioning changes/patching of the brush system:Antony Riakiotakis
* Change overlay alphas to 33 if not initialized. This should have been done for 2.67 but better do it now to avoid frustration with overly transparent overlays. For users that have set this low manually this will reset the setting to 33 but I think it's less irritating than users who unwillingly had the setting to 1 and saw nothing when activating the overlay. * Allow overlay alpha to be zero as well * Reset old, now obsolete BRUSH_FIXED flag for brushes that still use this. I am doing this here to avoid patching hell when the paint brush is merged, since it's not possible to know the merged version beforehand, and this flag will be used.
2013-06-28changed Pulldown box label for clarityGaia Clary
2013-04-23rna attribute consistency edits, use common prefix for booleans.Campbell Barton
2013-04-23Allow hiding separate hiding of overlays on stroke.Antony Riakiotakis
2013-04-23Add stencil control for mask overlay. Key combinations are the same asAntony Riakiotakis
regular stencil but use Alt as well, so Alt-Rclick is translation, Alt- clamping to avoid scaling of stencil to zero.
2013-04-23Overlay fixes:Antony Riakiotakis
* Clobbering enum * Cursor overlay not dependent on mapping (again!) * Brush overlay not updating when size is tweaked
2013-04-23Overlay refactor:Antony Riakiotakis
Allow separate control for tex/mask/cursor overlay. This commit implements separate overlays for mask textures and cursor curves. The user can turn on and off separate parts of the overlay by using the appropriate widgets. The cursor overlay widgets are located at the tool selection panel Also fixed alpha masks not getting correctly masked and mask texture mapping not having the correct update callback
2013-04-16Option to hide overlay during a stroke. To enable, press the brush iconAntony Riakiotakis
next to the overlay alpha.
2013-04-13Allow rake/random brush rotation for random mapping mode. SomeAntony Riakiotakis
interesting things can be accomplished this way, such as tiger stripes for instance.
2013-04-12Paint refactoring commit, non-disruptive (in theory :p)Antony Riakiotakis
* 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.
2013-04-08Fix #34875: 0 digits of precision was not supported for FloatProperty, nowBrecht Van Lommel
you can specify precision=0 for this, and use -1 for the default 2.
2013-04-05Stencil dimension control:Antony Riakiotakis
* Shift-Rclick and holding right click, x or y will trigger constrained scaling of overlay. Pressing again will revert to uniform scaling. * Added operator, visible under the mapping drop menu, to fit stencil aspect ratio to brush image aspect ratio. * Made it possible to access stencil attributes from python as vec.x, vec.y. Thanks to kgeogeo for pointing out!
2013-04-05Patch from kgeogeo:Antony Riakiotakis
* Change coordinates of stencil to float, helps with precision during property manuipulations * Expose stencil properties to RNA.
2013-03-31UI cleanup:Antony Riakiotakis
* Using masking is determined only by the presence of the texture, remove extraneous DNA flag (might cause issues later but in practice brush options are not harmful) * Overlay and angle sliders are active during stencil mapped brushes * Only draw the overlay if there's a texture.
2013-03-31Woot woot commit.Antony Riakiotakis
Stencil style texture mapping. Ready for field testing and user feedback. This commit adds stencil like brushes, like those that existed on old ptex branch. (with the exception of clip colour) To control the position of the stencil, you use Q: translation Shift - Q: scaling Ctrl - Q: rotation There's extra work that has been done to make this work: * Support for coloured overlay in vertex/texture painting * Also made A button do stroke mode selection like in sculpt mode, when mask painting is inactive. There are some TODOs to work on during bcon3: * Support tiled and stencil mode in 2D painting. Support alpha textures also. * Tidy up overlay code. There's some confusion there due to the way we use the primary brush texture sometimes for alpha, other times for colour control. WIP design docs will be in http://wiki.blender.org/index.php/User:Psy-Fi/New_Brush_Tool_Design
2013-03-30Tidy up stroke options and make them sexy, aka the paint optionAntony Riakiotakis
sculptification commit. We have a drop menu to select the stroke mode now. Jitter controls appear under stroke panel under all modes (As they should! They stroke control options). Also enable jittering for all modes. I really fail to see why not.
2013-03-25Alpha mask textures porting part 1: Support for projective texturing.Antony Riakiotakis
Also add random mapping to brushes.
2013-03-15Fix own mistake. Erroneously prefixed sculpt capabilities with sculpt_Antony Riakiotakis
before separating them in another struct. Thanks to Sebastian Koenig for reporting
2013-03-14Two new Features:Antony Riakiotakis
* Support for Rake in projective paint (2D painting will be a separate commit) * Support for smooth stroke across all paint systems
2013-03-11Jitter: Change UI. Now use lock icon to indicate relative jitter, tiedAntony Riakiotakis
to brush size, and unlock icon to indicate absolute jitter untied to brush size, in screen pixels. Also relative jitter now has soft UI limit of 2.0 and a hard limit of 1000 times the size of the brush. Should be enough for the most vivid imaginations...I hope!
2013-03-11Feature request for all paint systems that support it: Jittering inAntony Riakiotakis
absolute coordinates. This allows an artist to lower the brush radius while keeping the spread of the brush constant. A toggle under the jitter slider provides the option to switch between relative/absolute.
2013-03-07use bool for rna funcs.Campbell Barton
2013-02-12fix [#34198] Scene unit size and dyntopo detail sizeCampbell Barton
there were 2 bugs here. - int buttons scaling values on input but not on display. - pixel distances were using PROP_DISTANCE subtype - which isn't correct. added assert incase PROP_INT values have PROP_DISTANCE subtype applied in future.
2013-01-213D mapping for projective texture painting (only for draw brush). UsefulAntony Riakiotakis
to draw with procedural textures on surface of object. 2D painting will still paint as if tiled. When we unify the paint systems, the texture sampling functions will need to be changed. Sculpt uses a slightly different system that passes both screen and 3d coordinates to the sampling function. This commit however is not too disrupting for that however so it can go in now.
2013-01-16Get rid of the BRUSH_FIXED_TEX flag, use mapping modes instead. VersionAntony Riakiotakis
patched all previous texture paint brushes to use tiled mapping since mappping is now shared between 2d and 3d painting.
2013-01-16Unification of brush codeAntony Riakiotakis
* 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)
2012-12-30Add simplify brush for sculpt modeNicholas Bishop
2012-11-09style cleanup: indentationCampbell Barton
2012-06-06style cleanup: (indentation)Campbell Barton
2012-05-17Fix for clay strips brush not showing Add/Subtract buttons.Nicholas Bishop
2012-05-15Add 'area' mode for brush texture projection.Nicholas Bishop
This is similar to the 'view' mode, but uses the average local surface normal rather than the view normal for projection. Original code by Jason Wilkins (GSoC). Documentation: http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.64/Sculpting#Brush_Map_Mode
2012-05-15Code/UI cleanup: improvements for sculpt brush texture settings.Nicholas Bishop
Settings are shown in both the View3D toolbar and texture properties panel; code is now in shared sculpt_brush_texture_settings() function in properties_paint_common.py. Also added a few new properties to the SculptCapabilities RNA to replace "X in {Y, Z}" tests in the Python code.
2012-05-15Code cleanups for sculpt-related code.Nicholas Bishop
* Renamed flip_coord as flip_v3_v3 * Added flip_v3 for same input/output * Moved special case for grab brush's normal into calc_area_normal() * Renamed 'fixed' texture mode as 'view plane', mirrors Brush.sculpt_plane terminology
2012-05-11style cleanup: mainly sculpt/whitespaceCampbell Barton
2012-05-11Add mask brush for sculpt mode.Nicholas Bishop
The mask brush currently has two modes, 'draw' and 'smooth'.
2012-05-05code cleanup: brush/camera namingCampbell Barton
2012-04-30Add per-brush weight field.Nicholas Bishop
Patch from Jaggz H, thanks! [#31096] Weight-painting: Brush-specific weights http://projects.blender.org/tracker/?func=detail&atid=127&aid=31096&group_id=9 Each brush's weight can now be set individually, can also enable unified setting (same as size and strength have.) Added readfile code to the patch: subversion bumped to 1, brushes get default weight of 0.5, unified weight enabled by default and value from old vgroup_weight field.
2012-04-29style cleanup: whitespace / commasCampbell Barton
2012-04-22style cleanup: commentsCampbell Barton
2012-04-07fix for passing float to RNA_def_property_ui_range() int argument.Campbell Barton
2012-03-18Re-enable the clay strips sculpt brush.Nicholas Bishop
Most of the tool code was already in place, only significant functionality change is that anchored stroke works now. TODO: * Gave it a new icon, but could use a better one * Default .blend should have a clay strips brush
2012-03-18Rename 'clay tubes' to 'clay strips' and include it in the capabilities RNA.Nicholas Bishop
2012-03-18Code style edits (mostly spliting long lines, and removing trailing spaces).Bastien Montagne
Note about long lines: I did not touch to two pieces of code (because I don’t see any way to keep a nicely formated, compact code, with shorter lines): * The node types definitions into rna_nodetree_types.h * The vgroup name functions into rna_particle.c
2012-03-15Add RNA for brush capabilities (sculpt-only for now.)Nicholas Bishop
Added a new RNA-only nested structure, Brush.SculptCapabilities. It contains read-only properties that use the current sculpt tool (and occasionally other brush properties) to determine whether some feature is available. For example, the grab and snake-hook brushes don't support the strength property. Querying brush.sculpt_capabilities.has_strength will return false only if one of these brushes is selected.
2012-03-15Un-abbreviate 'use_space_atten' (Brush RNA) to 'use_space_attenuation'.Nicholas Bishop