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-08-25BMesh: New operator flag not to clear historyCampbell Barton
2014-08-07BMesh: use existing lookup tables when remappingCampbell Barton
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-07-12Replace BLI_SMALLSTACK_FREE with fake user (quiet warnings in msvc)Campbell Barton
2014-07-11Fix potential bug in loop normals code.Bastien Montagne
Even if we cannot use computed lnor, we still have to empty the fan stack of lnors!
2014-06-05Avoid openmp sections in BM_mesh_elem_index_ensureCampbell Barton
2014-06-05Code cleanup: mixup hflag/htypeCampbell Barton
2014-06-05BMesh: avoid using OpenMP when nothing to doCampbell Barton
Gave slowdown drawing on high poly meshes
2014-05-28Fix T40405: Blender crashes on FBX export instantly.Bastien Montagne
Better fix than rBbef5cb3aa2e5a: consider edges between faces with opposed normals as sharp. In fact, previous code was broken more deeply in this case (inconsistent normals across a 'smooth fan') - some loop normals would even never be computed! Fixing this is possible (even wrote it, actually), but this adds more complexity to a piece of code that is already awfully complicated, *and* normals in that kind of smooth fan do not make much sense anyway. So simpler and nicer results with assuming sharp edges between such 'opposed' faces! Note that there is some face (loop) ordering black magic at work here, added more comments to try to explain how and why all this works. As a bonus, we do not need to check for already computed loop normals anymore, since we know each 'smooth fan' will be walked once, and only once.
2014-05-01Add BLI_compiler_compat.h to help with portabilityCampbell Barton
2014-05-01Include removal gave problems with windows, ifdef some back in for windows onlyCampbell Barton
2014-05-01Revert "Fix msvc 2013 compiler errors after the ingenious cleanup in ↵Campbell Barton
4ca67869cc7a." This reverts commit a47a4ef82f37428d391cc14a30fa611d6714e71d.
2014-05-01Fix msvc 2013 compiler errors after the ingenious cleanup in 4ca67869cc7a.Thomas Dinges
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-04-21Fix stupid typo that broke split normal shading in edit mode, when there was ↵Bastien Montagne
some deform modifiers.
2014-04-15Various fixes/improvements regarding BMesh's elem_index_dirty and BM_LOOP ↵Bastien Montagne
handling. Most notably, BM_LOOP and BM_FACE index recompute should now be fully decoupled.
2014-04-15Fix T39740: New Autosmooth instant crash entering Edit ModeBastien Montagne
One should always be wary of last minute changes, especially in comples code area... :/
2014-04-13Compile fix for Windows.Thomas Dinges
2014-04-13Split Normals I (2/5): Add basic BMesh support of split normals.Bastien Montagne
* Merely a re-implementation of core split algorithm for BMesh, taking advantage of topological data available. * This code needs valid loop indices, so added BM_LOOP support to BM_mesh_elem_index_ensure() & co. Reviewers: campbellbarton Reviewed By: campbellbarton CC: brecht Differential Revision: https://developer.blender.org/D366
2014-04-08Mempool: delay allocating an initial chunk, its not always usedCampbell Barton
2014-04-05Mempool: remove BLI_MEMPOOL_SYSMALLOC, MEM_* allocs are more efficient nowCampbell Barton
2014-04-03Code cleanup: strict flags for bmesh_logCampbell Barton
2014-02-12Fix Editderivedmeshes vertices normals computation.Bastien Montagne
Those derived meshes (used in Edit mode) were using simple sum of neighbor poly normals to get vertex normals, while everywhere else in Blender we use weighted sum of such poly normals. Patch: D311 Reviewed and enhanced by Campbell, thanks!
2014-02-03Fix T38421: Vertex Parenting & Triangle Vertex Parenting causes segfaults.Sergey Sharybin
Issue was caused by clearing dirty flags from element table in bmesh before the data was fully ready. This confused checks happening from threads and some threads did consider element table is usable while other thread was still filling it in.
2013-10-28Fix compile error using Visual Studio 2012.Daniel Genrich
2013-10-28move bmesh array lookup data and utility functions from editmesh into bmesh,Campbell Barton
since enough bmesh operations can also take advantage of direct index lookups on verts/edges/faces. developers note: - EDBM_index_arrays_init/ensure/free -> BM_mesh_elem_table_ensure/init/free - EDBM_vert/edge/face_at_index -> BM_vert/edge/face_at_index - EDBM_uv_element_map_create/free -> BM_uv_element_map_create/free - ED_uv_element_get -> BM_uv_element_get
2013-10-27rename BM_vert_at_index -> BM_vert_at_index_find (since this searches the ↵Campbell Barton
mempool). needed for other changes - coming.
2013-08-25use ints for ghash/edgehash flags, since its allocated theres not much point ↵Campbell Barton
to try save a few bytes here.
2013-08-24ghash: reserve size when its known or can be guessed close enough.Campbell Barton
also avoid allocs per node in pbvh_bmesh_node_limit_ensure()
2013-07-10BM_mesh_clear was setting toolflags incorrectly, also no meed to calloc when ↵Campbell Barton
shrinking toolflags array.
2013-06-19Remove paranoid null checks for editmesh EDBM_vert_at_index and friends (use ↵Campbell Barton
asserts instead). temp set BM_OMP_LIMIT to zero for better testing before release.
2013-05-29Make sure bool will always have the same size in C and C++Sergey Sharybin
There were an issues with data structures defined in headers and being used by both C and C++ on systems with stdbool unavailable. This happened because bool in this case will be defined as unsigned int, which is 4 bytes. But C++'s bool is only 1 byte and this lead to alignment issues. Now bool is always 1 byte, also made sure there's no situation like bool foo = BitField & BitFlag, which could give overflow issues. Use (BitField & BitFlag) != 0 instead. Fixes #35553: Compositor broken (Backdrop & Preview)
2013-05-09fix for 2 errors introduced since releaseCampbell Barton
- shape key NULL pointer dereference. - use uninitialized variable for bmesh free. also update credits and merge dissolve flag assignment.
2013-05-08speedup for freeing bmeshes, skip calling free on everyCampbell Barton
vert/edge/face/loop if there are no free functions for the customdata layers.
2013-04-24fix [#34657] Smoothing will not be updated in object mode, when hiding faces ↵Campbell Barton
in edit mode and changing shape. remove the option to skip hidden faces in BM_mesh_normals_update, use openmp to speedup recalculation for high poly meshes.
2013-04-16code cleanup: use BKE naming conventions for functions in BKE_editmesh.h and ↵Campbell Barton
BKE_editmesh_bvh.h
2013-04-14code cleanup: minor changes, clang checker option for exact size matches and ↵Campbell Barton
use vector functions.
2013-04-14minor speedup to BM_mesh_normals_update()Campbell Barton
2013-04-14bmesh operators: use operator type-flag to specify which operations require ↵Campbell Barton
normal-calculations and which operations require selection flushing. eg, no need to flush selection after 'Smooth' tool, no need to recalculate normals after 'Select Similar'.
2013-04-14code cleanup: rename BKE_tessmesh -> BKE_editmesh, rename ↵Campbell Barton
EditDerivedBMesh.tc -> em. ('tc' is odd name which isn't used elsewhere).
2013-03-18style cleanupCampbell Barton
2013-03-17- ghost-sdl builds again.Campbell Barton
- without python builds without warnings. - replace MAXFLOAT -> FLT_MAX in some areas, MAXFLOAT overflows (lager then float range). - add cmake option WITH_GCC_MUDFLAP to enable libmudflap use.
2013-02-06style cleanup: some warnigs & spelling.Campbell Barton
2013-01-14use booleans for bmesh api.Campbell Barton
2012-12-22correct own error in openmp use for BM_mesh_elem_index_ensure().Campbell Barton
2012-12-12add threshold for bmesh & openmp so its not used with low poly meshes, ↵Campbell Barton
BM_OMP_LIMIT may need tweaking.
2012-12-12use openmp to thread some common bmesh operationsCampbell Barton
- BM_mesh_elem_toolflags_ensure / bmo_flag_layer_alloc / bmo_flag_layer_free / bmo_flag_layer_clear - BM_mesh_select_flush - EDBM_index_arrays_init notes: - mostly use openmp `sections` to split operations on vert/edge/face since this is a fairly minor change. - split tool flag pool in 3, this means we can allocate exact sizes needed and iterate on them in threads without alloc'ing.
2012-12-03fix [#33392] In-dev freeway generation addon crashes on recent builds.Campbell Barton
2012-12-03use const for bm_mesh_allocsize_default, bm_mesh_chunksize_defaultCampbell Barton
2012-11-20fix for changes in own recent commit:Campbell Barton
selected linked in face mode was crashing. (needs bmesh operator flags) also some style edits, remove unused includes and change triangulate modifiers use_beauty to a flag.