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
2014-09-24Cleanup: use float versions of functions when in/output are floatsCampbell Barton
2014-09-18One last tweak to palette deletion code. It would correct active colorAntony Riakiotakis
only when deleting the last color.
2014-09-18PalettesAntony Riakiotakis
* Remove some duplication in deletion code * Fix crash when restoring file from last saved state.
2014-09-18Palettes:Antony Riakiotakis
Avoid having an invalid active index if user deletes a color. Also attempt to set active color on clicking (Not working yet but fix coming soon)
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-06-13BLI_bitmap: rename macrosCampbell Barton
- BLI_BITMAP_SET -> BLI_BITMAP_ENABLE - BLI_BITMAP_CLEAR -> BLI_BITMAP_DISABLE - BLI_BITMAP_GET -> BLI_BITMAP_TEST - BLI_BITMAP_MODIFY -> BLI_BITMAP_SET
2014-05-15Fix T39978: Sculpting shapekeys - Using Smooth tool, turns shapekey into Basis.Sergey Sharybin
Smooth brush requires deformed coordinates array to present.
2014-05-09Code cleanup: styleCampbell Barton
2014-05-08Fix regression from 2.70:Antony Riakiotakis
Multires did not support hiding in zero level. It's a case of PBVH not being used in drawing due to code reporting active modifiers being used. However multires level zero can be treated as effectively no modifier and we can use mesh PBVH.
2014-05-07Code cleanup: naming.Antony Riakiotakis
Prepend BKE_ to the functions moved in blenkernel for recent bug fix.
2014-05-07Fix issue discovered while investigating T39950:Antony Riakiotakis
Sculpt mode drawing fails after deleting a subsurf modifier in sculpt mode and undoing. This was quite difficult to spot. Main cause was that mesh data was not synchronized properly between undo and sculpt code because we generated a pbvh on derivedmesh invalidation without really refreshing the rest of the data. This could result in undo and drawing operating on different data. To solve this and avoid bad level calls I had to move quite some code around. Crazyspace is now moved to blenkernel, as did some sculpt calls that make sure sculpt data are properly refreshed.
2014-04-07Code cleanup: remove unused functions and convert int -> boolCampbell Barton
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-03-10Fix T39034 brush always shown even after deactivating the show cursorAntony Riakiotakis
option after reentering a paint mode. Solution by Bastien with modifications, thanks! Show Brush flag need not be reenabled always, but make sure it is at least enabled once on paint initialization.
2014-02-26Paint API: add BKE_paint_select_elem_test: to check on paint selectionCampbell Barton
2014-01-21Code Cleanup: use bool for return values and correct commentsCampbell Barton
also remove CDDM_Check, theres no need for it.
2013-10-01Mark some CCG funcrions as inlinedSergey Sharybin
This seems to be giving speedup up to 10% in own tests. -- svn merge -r60104:60105 ^/branches/soc-2013-depsgraph_mt
2013-07-21code cleanup: add break statements in switch ()'s, (even at the last case).Campbell Barton
2013-06-21Default paint context will be image paint if object is not in a paint mode. ↵Antony Riakiotakis
It solves not being able to tweak textures in the new texture context button system if an image editor is set up for painting and active object is in object mode.
2013-06-06style cleanupCampbell Barton
2013-05-18Fix #35404: crash in file save with python code that accesses mesh from panel.Brecht Van Lommel
On file save the mesh gets loads from the editmesh but the derived mesh caches wer not cleared. This usually happens through the depsgraph but it needs to be done manually here. Most changes are some refactoring to deduplicate derived mesh freeing code.
2013-05-15Move sculptsession functions implementation from object.c to paint.cSergey Sharybin
This functios are declared in BKE_paint.h header and using SculptSession structure which is also declared there. Anyway, does not make sense such a splitting of header and implementation files, better be consistent here.
2013-04-23Allow hiding separate hiding of overlays on stroke.Antony Riakiotakis
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-16Fix crash when no brush is active. Reported by Francesco Siddi, on ircAntony Riakiotakis
thanks!
2013-04-13code cleanup: warnings + styleCampbell Barton
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-03-13Texture sampling function refactoring:Antony Riakiotakis
ALERT! POSSIBLE BREAKING COMMIT, ESPECIALLY FOR SCULPT! Separate the sculpt sampling function so that it can be reused from other paint systems. This includes updating of the relevant coordinates for anchored and rake style brushes, which are now being updated as part of the stroke system. I left only code for area-style brush texture mapping in sculpt code, since it requires a few data structures not present on other paint systems. This commit makes it almost as easy to support rake on other systems as exposing the python UI for it. Also it makes it totally possible to have texture painting capabilities in vertex paint too :) These commits will follow very soon. Also, even if I did my best to keep the code from breaking, (even fixed a leftover bug from coordinate changes) this is a big change. Please test!
2013-03-07Support position jittering on new texpaint code using the stroke system.Antony Riakiotakis
2013-02-05Fix #34040: Moving Normal Node with enabled Cycles Material Preview crashesSergey Sharybin
Issue was caused by couple of circumstances: - Normal Map node requires tesselated faces to compute tangent space - All temporary meshes needed for Cycles export were adding to G.main - Undo pushes would temporary set meshes tessfaces to NULL - Moving node will cause undo push and tree re-evaluate fr preview All this leads to threading conflict between preview render and undo system. Solved it in way that all temporary meshes are adding to that exact Main which was passed to Cycles via BlendData. This required couple of mechanic changes like adding extra parameter to *_add() functions and adding some *_ex() functions to make it possible RNA adds objects to Main passed to new() RNA function. This was tricky to pass Main to RNA function and IMO that's not so nice to pass main to function, so ended up with such decision: - Object.to_mesh() will add temp mesh to G.main - Added Main.meshes.new_from_object() which does the same as to_mesh, but adds temporary mesh to specified Main. So now all temporary meshes needed for preview render would be added to preview_main which does not conflict with undo pushes. Viewport render shall not be an issue because object sync happens from main thread in this case. It could be some issues with final render, but that's not so much likely to happen, so shall be fine. Thanks to Brecht for review!
2013-01-19Skip hidden faces in PBVH BMesh ray intersection testNicholas Bishop
Moved the GPU function gpu_bmesh_face_visible() to BKE_paint and inverted the test to match equivalent tests for other mesh types: paint_is_bmesh_face_hidden(). Changed BKE_pbvh_bmesh_node_save_orig() to not save hidden faces into the triangle array. Modified the non-use-original branch of pbvh_bmesh_node_raycast() to skip hidden faces. Fixes bug #33914: projects.blender.org/tracker/index.php?func=detail&aid=33914&group_id=9&atid=498
2012-12-29style cleanupCampbell Barton
2012-12-22code cleanup:Campbell Barton
make vertex/weight flag names consistent ME_EDIT_VERT_SEL --> ME_EDIT_PAINT_VERT_SEL ME_EDIT_PAINT_MASK --> ME_EDIT_PAINT_FACE_SEL also remove unused header BLO_soundfile.h
2012-10-29Fix: wrong brush drawn in image painting, image editor if uv sculpt is on. ↵Antony Riakiotakis
Now the correct paint struct is returned and the image zoom is calculated correctly
2012-09-27incorrect spelling in commentsCampbell Barton
2012-07-26code cleanup: use BKE_pain_ prefix for paint funcs. also minor style editsCampbell Barton
2012-07-25mask now draws in the image view, misc minor edits.Campbell Barton
2012-06-18Fix #31826: UV/Image editor paint image crashSergey Sharybin
Missed NULL check in own refactoring a while ago.
2012-06-04Correction to recent changes in paint module -- missed NULL check for active ↵Sergey Sharybin
object
2012-06-04Fix #31093: Brush's "Paint curve presets" in Image paint in UV\Image Editor ↵Sergey Sharybin
doesn't work if weight paint mode is active Some operators like curve presets, color sample and some more were using object's mode to distinguish in which mode user is currently painting. Such approach fails in cases when there's paint mode active in 3D viewport and Image Editor. Changed logic here to use some context's state like active space which helps distinguishing current paint mode more accurate. Ported all areas which uses paint_get_active() to new paint_get_active_from_context(). There're still some calls to paint_get_active(), but that shouldn't be harmful due to that places indeed have object's mode as priority when getting paint mode.
2012-05-11style cleanup: mainly sculpt/whitespaceCampbell Barton
2012-05-11Add GridPaintMask accessor to paint.c.Nicholas Bishop
2012-05-05code cleanup: brush/camera namingCampbell Barton
2012-04-28style cleanup: changes to brace placement / newlines - for/while/if/switchCampbell Barton
2012-04-22style cleanup: commentsCampbell Barton
2012-03-24style cleanup: follow style guide for formatting of if/for/while loops, and ↵Campbell Barton
else if's
2012-03-14Add MDisps.hidden bitmap.Nicholas Bishop
Updates SDNA, customdata functions, and file read/write. Also adds accessor functions to BKE paint.
2012-01-17Uv Tools branch GSOC 2011Antony Riakiotakis
========================= Documentation: http://wiki.blender.org/index.php/User:Psy-Fi/UV_Tools Major features include: *16 bit image support in viewport *Subsurf aware unwrapping *Smart Stitch(snap/rotate islands, preview, middlepoint/endpoint stitching) *Seams from islands tool (marks seams and sharp, depending on settings) *Uv Sculpting(Grab/Pinch/Rotate) All tools are complete apart from stitching that is considered stable but with an extra edge mode under development(will be in soc-2011-onion-uv-tools).