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
2019-02-01Logging: Use CLOG for blenkernelCampbell Barton
Part of D4277 by @sobakasu
2019-01-26Cleanup: remove redundant BKE/BLI/BIF headersCampbell Barton
2018-12-13Cleanup: styleCampbell Barton
2018-12-12Fix T58450: Skin modifier not working if applied after subsurfSergey Sharybin
2018-12-12Merge branch 'master' into blender2.8Campbell Barton
2018-12-12Cleanup: use colon separator after parameterCampbell Barton
Helps separate variable names from descriptive text. Was already used in some parts of the code, double space and dashes were used elsewhere.
2018-12-03Fix T57858: Add validation callback to CustomData layers.Bastien Montagne
Our mesh validation was only checking cd layout so far, not their actual data. While this might only be needed for a few types, this is a required addition for things like imported UVs, else we have no way to avoid nasty things like NANs & co. Note that more layer types may need that callback, time will say. For now added it to some obvious missing cases...
2018-11-24Fix T56374, T57066, T58037: crash on startup on macOS when using translation.Brecht Van Lommel
2018-11-07Cleanup: Remove 'BKE_library.h' include from 'BKE_main.h'Bastien Montagne
That kind of implicit includes should really only be done when totally, absolutely necessary, and ideally only with rather simple 'second-level' headers. Otherwise not being explicit with includes always end up biting in unexpected ways...
2018-10-17Cleanup: remove some #if 0 blocksJacques Lucke
Reviewers: brecht, campbellbarton Differential Revision: https://developer.blender.org/D3802
2018-09-25CustomData: Allow copying content of a single layerSergey Sharybin
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-06-17Merge branch 'master' into blender2.8Campbell Barton
2018-06-17Cleanup: trailing space for blenkernelCampbell Barton
2018-06-13Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: source/blender/blenkernel/intern/blendfile.c source/blender/blenkernel/intern/node.c source/blender/blenkernel/intern/particle.c
2018-06-13Cleanup: remove more G.main from BKE area.Bastien Montagne
2018-05-30Cleanup: use 'e' prefix for enum typesCampbell Barton
2018-05-30Cleanup: Use typed allocation type enum in custom data APISergey Sharybin
2018-01-18Merge branch 'master' into blender2.8Brecht Van Lommel
2018-01-18Fix buffer overflow vulnerabilities in mesh code.Brecht Van Lommel
Solves these security issues from T52924: CVE-2017-12081 CVE-2017-12082 CVE-2017-12086 CVE-2017-12099 CVE-2017-12100 CVE-2017-12101 CVE-2017-12105 While the specific overflow issue may be fixed, loading the repro .blend files may still crash because they are incomplete and corrupt. The way they crash may be impossible to exploit, but this is difficult to prove. Differential Revision: https://developer.blender.org/D3002
2017-10-07Cleanup: style, duplicate includesCampbell Barton
2017-09-18Merge branch 'master' into blender2.8Campbell Barton
2017-09-18Cleanup: use clamped rounding functionsCampbell Barton
2017-05-30Somehow missed this in recent Face Maps commitCampbell Barton
Since the previous layer type was for ints too, it worked in tests.
2017-05-28Merge branch 'master' into blender2.8Bastien Montagne
2017-05-27CustomData: assert on bad arguments to freeCampbell Barton
Assert the index is in-range for the layer type.
2017-05-26Merge branch 'master' into blender2.8Campbell Barton
2017-05-26Fix freeing all custom-data layersCampbell Barton
Would crash when the active index was out of range, since there is no reason to use the active layer when freeing all, free the first instead.
2017-05-25TexFace removal part 3Campbell Barton
- MTexPoly structure & layer type. - The 'Mesh.uv_textures' layers. - DerivedMesh TexFace drawing. - Scripts & UI.
2017-05-24TexFace removal part 2Campbell Barton
- Derived-mesh drawing. - All non UV members of TexFace structs. MTexPoly is now redundant but keeping with a dummy member, will check on complete removal later.
2017-05-24Remove TexFace, per-face imagesCampbell Barton
TexFace complicates the now more popular shading pipeline by having per-face images, see: T51382 for details. To keep the ability to select a per-material edit-image (used with UV-mapping workflow), the material now stores an image which will be set when changing images in edit-mode. This is used as a bake-target when not using Cycles too.
2017-03-27Add back missing includeCampbell Barton
2017-03-26re-adds the include "BLI_math.h" to custondataGermano Cavalcante
It was removed here rBd52191616b5f
2017-03-25Fix unreported: inaccuracy of interpolation of custom color layers due to ↵Germano Cavalcante
float truncation Same solution from rBd23459f51640 but now in `layerInterp_mcol` Also a cleaning was done in the includes
2017-03-24Fix for last fix of fix: (unsigned)char is limited to 255Germano Cavalcante
setting char as value outside its range will wrap
2017-03-24Fix of last commit. Clamp values that will be used!Germano Cavalcante
2017-03-24Fix T51038: `layerInterp_mloopcol` was casting instead of rounding the ↵Germano Cavalcante
interpolated RGBA channels Casting to int truncates a floating-point number, that is, it loose the fractional part.
2017-02-08Alembic: #undef'ed the correct macroSybren A. Stüvel
TEST_RET is not defined anywhere in Blender's sources, and LAYER_CMP is no longer used after this function ends.
2017-01-16Cleanup/refactor: Add new BLI_string_util.Bastien Montagne
Things like `BLI_uniquename` had nothing, but really nothing to do in BLI_path_util files! Also, got rid of length limitation in `BLI_uniquename_cb`, we can use alloca here to avoid overhead of malloc while keeping free size (within reasonable limits of course).
2016-06-07Cleanup - size_t is unsigned, so always >= 0!Bastien Montagne
2016-05-16Remove strict header, gives issues with gcc5xCampbell Barton
2016-05-16Cleanup: use const argsCampbell Barton
2016-05-16CustomData: Support for >2gig layersCampbell Barton
2016-04-26Support multiple tangents for BI render & viewportAlexander Romanov
Normal Map node support for GLSL mode and the internal render (multiple tangents support). The Normal Map node is a useful node which is present in the Cycles render. It makes it possible to use normal mapping without additional material node in a node tree. This patch implements Normal Map node for GLSL mode and the internal render. Previously only the active UV layer was used to calculate tangents.
2016-04-06Fix leak w/ missing external mesh customdataCampbell Barton
2016-02-28BKE_mesh: add polygon flipping tools.Bastien Montagne
Those new functions invert the winding of polygons, effectively inverting their normals. A helper was also added to allow swapping two items in customdata layers. Being able to invert normals outside of BMesh area is very important in several places, like IO scripts or customnormals modifiers... Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D1814
2016-02-28Cleanup: rename `CustomData_swap` to `CustomData_swap_corners`.Bastien Montagne
More in line with our other func names handling sub-item data (mainly, tessfaces' UVs and VCol...).
2016-01-11Fix memory & file-handle leak w/ custom data writeCampbell Barton
2015-11-11Fix T46694: UVLoop incorrectly copied flagCampbell Barton
Error in copying customdata flag lead to pin being randomly enabled.