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
2016-05-16Cleanup rna_Brush_direction_itemf()Bastien Montagne
Some variants of gcc compilation were reporting 'control reaching end of non-void function' error in this switch/case maze. Either use break everywhere or not at all (which is simpler, since we only always return anyway...).
2016-04-15Fix T48151: Brush texture overlay won't refresh automatically in UV editor ↵Bastien Montagne
when changed in buttons window. Simple solution is to get rid of this stupid `rna_TextureSlot_brush_update` func, and do what it was doing directly in BR case of `rna_TextureSlot_update`. That way, all updates to brush texture will invalidate correctly the overlay. Note that this double definition of texture pointer for brushes looks rather fishy, am really not convinced this helps keeping things simple and clear at all (what happened here is that texture selector in image paint editor was using 'texture' member of brush itself, which was performing correct RNA update, while context-based brush texture selector from buttons space was using 'texture' member of the TextureSlot struct, which had default texture update callback which was not invalidating overlay).
2016-01-21Sculpt: pinch/inflate support for snake-hookCampbell Barton
Snake-hook tended to loose volume along the stroke, now with pinch > 0.5 its possible to sculpt shapes without loosing volume.
2016-01-21Sculpt: Add rake option to snake-hookCampbell Barton
This allows for dragging out shapes that rotate to follow the cursor motion. Values over 1 can be set for 'interesting' artistic effects.
2015-11-23Cleanup: use `rna_enum_` prefix for RNA enumsCampbell Barton
Definitions could shadow local vars.
2015-10-23Cleanup: rename 'datablocks' -> 'data-blocks'Campbell Barton
Similar to addons -> add-ons, for reading it fits better to hyphenate.
2015-08-31Fix T45258, impossible to select brush when removing it from 2dAntony Riakiotakis
painting. Also system added a brush every time it found no paint brush in the system which is not what we would want. Solution: * Brush panel stays visible always, regardless of whether there is a brush or not. * We search for first available brush when we find no brush in paint struct instead of always generating a new one. * Generating and searching for a brush take a mode argument now. Needed some refactoring to users of BKE_paint_init as well. * Did some style cleanups for paint mode enums. Patch is big but it's mostly argument refactoring.
2015-07-27Image painting 2D:Antony Riakiotakis
Deprecate wrap (BRUSH_TORUS) option, we now have paint flags for tiling and we can reuse those. Also allows seperate tiling in X/Y direction for 2D painting now. Only one tiling is allowed for now. Options can be found in new "Tiling" panel under the tools tab. For version patching, we just turn off brush wrapping, to allow reuse of the flag in the future. New option is paint mode wide instead of per brush so a brush having the old wrap option will not enable it for the whole mode in the version patch.
2015-06-17Cleanup: duplicate includesCampbell Barton
2015-05-11Expose PreviewImage & custom icons to py API.Bastien Montagne
This commit mainly: * Exposes PreviewImage struct in RNA, including ways for user to set images data. * Adds a new kind of PreviewImage, using a file path and IMB_thumb to get image. * Adds a new kind of custom icon using PreviewImage, unrelated to ID previews system. * Adds a python API (utils.previews) to allow python scripts to access those custom previews/icons. Note that loading image from files' thumbnails is done when needed (deferred loading), not when defining the custom preview/icon. WARNING: for release addons who would want to use this, please keep it to a strict minimum, really needed level. We do not want our UI to explode under hundreds of different flashy icons! For more info, see also the release notes of Blender 2.75 (http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.75/Addons) and the example/templates featured with Blender. Patch by Campbell (ideasman42), Inês (brita) and Bastien (mont29). Differential Revision: https://developer.blender.org/D1255
2015-04-20Sculpt: clay-strips was missing accumulate buttonCampbell Barton
Correct & de-duplicate check for accumulate.
2014-12-30Fix issue in separate rake control commit:Antony Riakiotakis
Mask slot still depended on regular slot to check some capabilities. Some angle capabilities now only depend on the texture slot, not the brush, so separate them and use the slot where appropriate.
2014-12-27Brush Texture Angle Goodies:Antony Riakiotakis
This commit includes a few things: * It moves the Rake and Random flags from the brush to the MTex. * The first change allows mask textures to have independent rake support. * Random rotation now has an angle value that controls the width of the effect from the rake or default angle * Rake and Random are now supported together.
2014-10-03Sculpting:Antony Riakiotakis
Grab and Snake hook brushes now support strength. To keep compatibility with older brushes, this commit also sets strength to 1.0 for those brushes.
2014-07-23Updates/fixes for new UI messages.Bastien Montagne
2014-07-21CleanupCampbell Barton
2014-07-21GSOC 2013 paintAntony Riakiotakis
Yep, at last it's here! There are a few minor issues remaining but development can go on in master after discussion at blender institute. For full list of features see: http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.72/Painting Thanks to Sergey and Campbell for the extensive review and to the countless artists that have given their input and reported issues during development.
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-05-14Code cleanup: indentationCampbell Barton
2014-04-05Fix sculpt brushes stuck to drag dot or anchored modeAntony Riakiotakis
Was own mistake after RNA enu refactoring.
2014-03-30Style cleanupCampbell Barton
2014-03-27Attempt to fix T39412Antony Riakiotakis
do not use different stroke property names for different paint systems. This was done due to different stroke sets being supported for each system, but this lead to trouble if we changed the names (due to different stroke sets being supported) and users created custom keymaps with the old property name saved. The first part of this fix addresses master. A similar commit will be done to soc-2013-paint.
2014-01-30UI: move toggle icons out of layout checks into rnaCampbell Barton
2014-01-04RNA API: use bool's for enum itemf callbacks.Campbell Barton
2013-12-19Fix T37807 gravity causes crashes when using shif-smoothing.Antony Riakiotakis
Turns out we didn't properly free node proxies that gravity did use and strokes ended up accessing previous data. Also deactivated gravity when a smooth brush is used. It is kind of distracting to get the mesh gravitated while smoothing.
2013-12-12RNA: Add pixels property typeScott Petrovic
2013-12-12Sculpt mode Gravity feature from GSOC 2010 by Jason Wilkins.Antony Riakiotakis
Reviewers: sergey, brecht, campbellbarton, jwilkins Differential Revision: http://developer.blender.org/D89
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