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
2018-09-24Merge branch 'master' into blender2.8Brecht Van Lommel
2018-09-24Spelling fixes in comments and descriptions, patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3719
2018-09-19BLI_utildefines: rename pointer conversion macrosCampbell Barton
Terms get/set don't make much sense when casting values. Name macros so the conversion is obvious, use common prefix for easier completion. - GET_INT_FROM_POINTER -> POINTER_AS_INT - SET_INT_IN_POINTER -> POINTER_FROM_INT - GET_UINT_FROM_POINTER -> POINTER_AS_UINT - SET_UINT_IN_POINTER -> POINTER_FROM_UINT
2018-09-19Merge branch 'master' into blender2.8Campbell Barton
2018-07-13Merge branch 'master' into blender2.8Campbell Barton
2018-07-13Cleanup: right shift argumentsCampbell Barton
2018-07-01Merge branch 'master' into blender2.8Campbell Barton
2018-07-01RNA: use bool for boolean RNA typesCampbell Barton
We were using int's for bool arguments in BKE, just to avoid having wrapper functions.
2018-06-27Cleanup: remove some more DM usages...Bastien Montagne
2018-05-16Add BKE_mesh_is_validMai Lavelle
Non modifying version of `BKE_mesh_validate`, mirrors `DM_is_valid` more closely. Will be used in port of `mesh_calc_modifiers` from `DerivedMesh` to `Mesh`.
2018-03-23Merge branch 'master' into blender2.8Campbell Barton
2018-03-23Cleanup: stray tabsCampbell Barton
Tabs in middle of code (mostly for no reason / by accident).
2018-02-15Merge branch 'master' into blender2.8Sergey Sharybin
2018-02-15Cleanup: use '_len' instead of '_size' w/ BLI APICampbell Barton
- When returning the number of items in a collection use BLI_*_len() - Keep _size() for size in bytes. - Keep _count() for data structures that don't store length (hint this isn't a simple getter). See P611 to apply instead of manually resolving conflicts.
2017-05-28Merge branch 'master' into blender2.8Bastien Montagne
2017-05-26Fix T50851: Array modifier generating invalid geometry.Bastien Montagne
We had handling of fully duplicated polygons already, but... absolutely nothing to sanitize partially merged polygons! This were giving us totally invalid geometry, with duplicated vertices in single poly, invalid edges, etc. Now we do check for invalid loops inside polys, and generate new edges as needed to get only valid polys. For some reason this was a nightmare to get running fully OK, playing with old and new indices is really, really mind breaking.
2017-05-25TexFace removal part 3Campbell Barton
- MTexPoly structure & layer type. - The 'Mesh.uv_textures' layers. - DerivedMesh TexFace drawing. - Scripts & UI.
2017-04-06Depsgraph: Remove old header from blenkernelSergey Sharybin
2016-05-17C99/C++11: replace deprecated finite() by isfinite().Brecht Van Lommel
2015-11-23Cleanup: shadowing (blenkernel)Campbell Barton
2015-11-16Fix/enhance BKE_mesh_validate_arrays.Bastien Montagne
Aside from some minor cleanup, this commit: * Fixes checking twice for multiple usage of same vert by a same poly. * Fixes handling of ME_VERT_TMP_TAG vert flag by that check (there was no guaranty that flag was cleared for a poly's vertices before we start checking).
2015-10-07Fix mesh validate: 'r_changed' ignored loop editsCampbell Barton
2015-08-20Fix T45514 crash entering texpaint mode.Antony Riakiotakis
In the file of the report, stencil and clone indices have fallen out of synch with the uv/mtexpoly layers. Looks like the file has a long history, coming from 2.49 even. Unfortunately reporter cannot recall exact steps to reproduce, so "fix" is to patch mesh.validate to fix those indices.
2015-06-19Cleanup: fix mismatch in printf formating (int/unsigned int).Bastien Montagne
Noisy and annoying with new gcc5...
2015-04-07Use BKE_edgehash_ensure_p where possibleCampbell Barton
2015-03-03Fix mesh-validate for polys using successive vertsCampbell Barton
2015-02-26mesh_validate: don't add invalid edges into the hashCampbell Barton
2015-02-24Fix BKE_mesh_validate_arrays, ignored do_fixesCampbell Barton
2015-02-05Mesh validate: add an option to not clean temp/cache CDLayers.Bastien Montagne
This is mandatory for incoming custom normal imports from io scripts, because often geometry here is corrupted, so we need to call mesh.validate() to clean it up. Issue is, we cannot set custom normals before geometry is clean, so we need to store temporary plain loop normals in a CD_NORMAL layer, validate, and then set custom normals. So we need a way to prevent 'temp' lnors to be freed by validate.
2014-11-21Cleanup: typoCampbell Barton
2014-08-19Fix crash in BKE_mesh_validate_arraysCampbell Barton
2014-08-19Fix mesh validate skipping first vertexCampbell Barton
2014-07-25Fix bug in validate mesh code (could use index out of range).Bastien Montagne
2014-07-17Add helper to validate (and fix) material indices of meshes' polygons, ↵Bastien Montagne
curves' splines and texts' letters. Useful especially for importer addons. Reviewers: campbellbarton Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D650
2014-04-26Code cleanup: use 'const' for arrays (blenkernel)Campbell Barton
2014-04-11Code cleanup: use boolCampbell Barton
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-01-17Code Cleanup: spellingCampbell Barton
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-12Fix [#37380] vertex paint colors don't render.Bastien Montagne
Another Evil Typo (r) one, you could add much more than the 8 allowed VCol layers! Note: added some (warning-only) checks in mesh validate functions, but we still have a big issue with new cdlayer merge function, which could generate more than 8 layers of UVs or VCol... Don't know yet how to handle this situation. :(
2013-09-25fix error where BKE_mesh_cd_validate layer renaming would use invalid index ↵Campbell Barton
values. from r60260 also correct some comments.
2013-09-20Fix [#36759] UV Project - Specified UV Map doesnt work properlyBastien Montagne
In fact, the issue was that names of mloopuv/mtespoly layers could very easily get out of sync (a simple rename was enough), while most tools (such as the UVProject modifier) expect matching layers to have the same name! Now matching names are check on load, and renaming of a layer through RNA is guaranted to be synchronized with its counterparts. Thanks to Brecht & Campbell for reviews.
2013-09-16fix [#36291] Applying subsurf to mesh or setting subdivisions to zero ↵Campbell Barton
crashes Blender issue was mesh somehow had a mismatch of UV/texpoly layers. we may want to allow this in the future but for now sync on load just in case.
2013-09-09move mesh evaluation functions (normal, mapping, smooth group... etc, ↵Campbell Barton
calculations) into mesh_evaluate.c. mesh.c was over 4k lines and complex functions mixed in with general library management.
2013-09-04fix for building on msvcCampbell Barton
2013-09-04debug option for modifier stack calculation USE_MODIFIER_VALIDATE,Campbell Barton
checks that every modifier gives a valid mesh (very slow) - so off by default even in debug mode.
2013-08-24use reserve argument for more edgehashsCampbell Barton
2013-08-24when the size of an edgehash is known or can be guessed,Campbell Barton
pass in the argument to reserve the size.
2013-08-24edge hash: take an arg for the guarded-malloc string (as ghash does)Campbell Barton
2013-07-27code cleanup: typosCampbell Barton