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-02-02Code cleanup: suffix vars to make obvious they are squaredCampbell Barton
2014-01-27Code cleanup: use booleans where appropriateCampbell Barton
2014-01-21Code Cleanup: use bool for return values and correct commentsCampbell Barton
also remove CDDM_Check, theres no need for it.
2014-01-21Optimize tessellation code (min 20% better, up to 300% with some CD layers ↵Bastien Montagne
to tessellate). The main idea is to store (during tessellation) or recreate (during tessdata update) a tessfaceverts-to-loops mapping, and then update all tessdata in one pass, instead of calling `BKE_mesh_loops_to_mface_corners` repeatedly for all tfaces! Differential Revision: https://developer.blender.org/D226 Reviewed by Campbell, thanks a lot!
2014-01-20Fix T38269: scene full copy in mesh edit or sculpt mode did not copy mesh edits.Brecht Van Lommel
2014-01-16Code Cleanup: no need to pass empty strings as default valuesCampbell Barton
2014-01-12Style Cleanup: whitespaceCampbell Barton
2014-01-12Style Cleanup: whitespaceCampbell Barton
2014-01-04RNA API: use bool's for enum itemf callbacks.Campbell Barton
2014-01-03Fix T38045: Clone stamp crashesSergey Sharybin
Issue seems to be caused by thread-unsafe IMB_freeImBuf. Now use generic BKE_image_release_ibuf to de-reference image buffer which was acquired from image datablock.
2014-01-03Code clean-up change naming of gpu buffers used by pbvh to betterAntony Riakiotakis
reflect that. Previous name GPU_Buffers was very similar to GPU_Buffer, renamed to GPU_PBVH_Buffers
2013-12-22Style Cleanup: remove preprocessor indentation (updated wiki style guide too)Campbell Barton
2013-12-20Slightly improve undo performance in dyntopo when last operator was maskAntony Riakiotakis
modification. In that case no pbvh needs to be freed and recreated and we can get away just with draw buffer update (all of them for now. When pbvh nodes get logged for undo we will be able to only update the affected ones).
2013-12-20Code Cleanup: styleCampbell Barton
2013-12-19Sculpting:Antony Riakiotakis
* Support for symmetry in lasso masking * Optimize away symmetry multiplication of gravity vector if no gravity active * Move flip_v3_v3 to paint_utils (used in masking as well) * Use OpenMP for mask flood fill too.
2013-12-19Fix T37387 VIEW3D_OT_view_selected in sculpt mode zooms far fromAntony Riakiotakis
sculpted object if last sculpt stroke ends outside the mesh. Code here used the last true location which is invalid in that case, just reuse the average stroke location instead.
2013-12-19Support for symmetry in gravity.Antony Riakiotakis
Also fix previous commit original coordinate change for proxy calculation (broke all non-anchored brushes -facepalm-) and cache the gravity support result.
2013-12-19Fix T37812, anchored sculpting on a flat plane created artifacts.Antony Riakiotakis
This must be an ancient bug, almost as old as anchored brushes themselves. Code did not do sphere node intersection against original bounding boxes if an anchored brush required it. In practice this was not easy to see because vertices were displaced inside brush radius most of the time. However in the provided report file, displacement was far away from the brush sphere, making the issue apparent. Also added original check in proxy combination code (might cause issues with dyntopo but quick test did not show any) and did some style int -> bool style changes.
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-18Vertex/weight paint: remove "Use All Faces" option.Brecht Van Lommel
This is now always enabled, when you want to paint on a individual faces you can use face selection masking instead. Fixes T37855.
2013-12-18Fix T37177, sculpting can act on opposite side of mesh in orthographic camera.Antony Riakiotakis
Summary: Issue here most probably is that the start point in ray-casting is too far away from the mesh. As a result the triangle intersection code can sometimes miss the ray intersection. To solve this, we project the ray segment to the boundary of the root node. Reviewers: brecht, sergey, campbellbarton Reviewed By: brecht Maniphest Tasks: T37177 Differential Revision: http://developer.blender.org/D115
2013-12-18Style Cleanup: minor edits in recent changesCampbell Barton
2013-12-13Image cache rewrite to using generic movie cacheSergey Sharybin
Summary: Behaves very much the same as cache for Movie Clip datablock: - Image now have `MovieCache *cache` field which replaced legacy `ListBase ibufs`. This allows image datablock to easily keep of image buffers which are owned by itself. This field isn't saved to the file and getting restored on undo steps. However, cache limit is global for movies, sequences and image datablocks now. So overall cached image buffers size will not go above cache limit size in user preferences. - Image buffers which are marked as BITMAPDIRTY will never be freed from the cache. - Added utility function to iterate over image buffers saved in movie cache. - Movie cache cleanup check callback now have ImBuf argument which can be used in a condition of cleanup. - Added some utility functions which replaces legacy ibufs iterations with image cache iteration which happens from inside a lock. - Fixed `image_mem_size()` which was only counting one of the buffers if both float and byte buffer present. Additional notes: - `BKE_image_get_first_ibuf()` is rather stupid, but direct access to ibufs->first was also the same stupid idea. Would consider avoid this function is another project. - There are some places which doesn't look threadsafe, but they already were not so much threadsafe anyway before. So think not a big deal with solving this later. Finally solves infinite memory usage by image sequences! :) Reviewers: brecht, campbellbarton Reviewed By: brecht CC: sebastian_k Differential Revision: http://developer.blender.org/D95
2013-12-13minor style and comment fix.Antony Riakiotakis
2013-12-12improvements and simplification to gravity code:Antony Riakiotakis
* world to object matrix is calculated for view vector as well, reuse that. * if no orientation exists use world negative axis instead of object negative axis for gravity. there's also the issue of mirroring, it may be wise to invert the gravity effect there but it may be better to have artist feedback on that.
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-12Mesh API: Add BKE_mesh_origindex_map_createCampbell Barton
This API function lets original data loop over its derived data, Use for vertex paint, replacing custom function.
2013-12-12Code Cleanup: move mesh mapping functions into their own file/headerCampbell Barton
2013-12-10Style changes to refactor commit.Antony Riakiotakis
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-12-08Minor addition for completeness (unlikely to happen), make sure newAntony Riakiotakis
sculpt struct has at least dyntopo subdivision turned on.
2013-12-08Fix T37326 inversion of image channels did not do an undo push. Now only do ↵Antony Riakiotakis
an undo if we are in image paint mode and use the paint undo stack. Also added missing GPU update.:
2013-12-03Fix T37670: Paint mode + procedural map colours errorSergey Sharybin
Summary: Seems to be known TODO in the code, but no idea why it was never solved, especially since tweak is so much easy. It might be arguable that we need to support painting color space, but it's still much better to convert to sRGB space. It's gonna to cover 90% of cases anyway. Reviewers: campbellbarton, brecht Reviewed By: brecht Maniphest Tasks: T37670 Differential Revision: http://developer.blender.org/D65
2013-12-03Code Cleanup: remove redundant/misleading NULL checksCampbell Barton
2013-12-02MemArena: use size_t instead of int for alloc args and internal storage.Campbell Barton
also add BLI_memarena_calloc to be used when calloc isnt enabled for the arena.
2013-11-26Sculpt Dynamic Topology: support collapsing edges without subdividing edges ↵Brecht Van Lommel
as well This allows you to choose between subdivide edges, collapse and both. Being able to only collapse edges can be useful to simplify meshes with accidentally introducing more detail. Reviewed By: psy-fi, carter2422 Differential Revision: http://developer.blender.org/D15
2013-11-25Code Cleanup: rename vars for detecting change to be more consistentCampbell Barton
rename change/is_change/is_changed/modified -> changed also use bools over int/short/char and once accidental float.
2013-11-16code cleanup: rename flip_side_name to BKE_deform_flip_side_nameCampbell Barton
2013-11-16Code cleanup, cont. A small omission here.Antony Riakiotakis
2013-11-16Code cleanup: Use different redraw options for sculpt mask operators.Antony Riakiotakis
Current redraw options also did an unnecessary normal recalculation on updated nodes. Also, for the box and lasso mask only push an undo node if any vertex has actually been influenced.
2013-11-16Support for symmetrical box masking in sculpt mode.Antony Riakiotakis
Now box masking will take the symmetry options into account.
2013-11-06code cleanup: typo and warning when openmp's disabled.Campbell Barton
2013-11-05code cleanup: typosCampbell Barton
2013-11-02code cleanup: warningsCampbell Barton
2013-10-31remove return argument from wmOperatorType->cancel, was only ever returning ↵Campbell Barton
OPERATOR_CANCELLED.
2013-10-31fix for uninitialized value use in newly added fcurve normalized view.Campbell Barton
also quiet warning without openmp.
2013-10-30One more optimization for lasso, clip PBVH against object space planesAntony Riakiotakis
of lasso enclosing rectangle.
2013-10-30Optimization of lasso masking using scanfill.Antony Riakiotakis
Thanks to Campbell for the advice!
2013-10-30Some comment fixes, add new sculpt masking operators to menusAntony Riakiotakis
2013-10-30Lasso select tool for masking in sculpting. Initial code, non optimizedAntony Riakiotakis
for now. Used to be ultra terrible but with threading (openmp) there is slightly better performance and is ready for testing. To use press shift-ctrl-lclick. Still no ability to remove mask. Coming soon. Also make box selection threaded (openmp) and comment fix.