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-03-07Refactor CDData masks, to have one mask per mesh elem type.Bastien Montagne
We already have different storages for cddata of verts, edges etc., 'simply' do the same for the mask flags we use all around Blender code to request some data, or limit some operation to some layers, etc. Reason we need this is that some cddata types (like Normals) are actually shared between verts/polys/loops, and we don’t want to generate clnors everytime we request vnors! As a side note, this also does final fix to T59338, which was the trigger for this patch (need to request computed loop normals for another mesh than evaluated one). Reviewers: brecht, campbellbarton, sergey Differential Revision: https://developer.blender.org/D4407
2019-03-06Fix T62236: Crash texture paintingCampbell Barton
Caused by 10d9a2494fc5e which removed 5x length clamping.
2019-03-06Cleanup: styleCampbell Barton
2019-03-04Texture Paint: round corners of dilated UV seamsLuca Rood
This fixes the issue of long spikes on sharp corners by rounding them, guaranteeing that the bleed will never exceed the bleed distance set by the user in any part of the mesh. See: D4437
2019-03-04Fix texture paint UV dilation algorithmLuca Rood
Two aspects are addressed: - Correct computation of dilation distance, so that dilated boundaries remain parallel to the original boundaries (and with the actual distance specified as bleed distance). - Dilate with regard to adjacent seams instead of adjacent triangle edges, for a more correct result. This is especially important in the case of concave shapes, where spikes could overlap with actual geometry. See: D4436
2019-02-28Fix T60366: texture paint slots not updating when editing material.Brecht Van Lommel
Now always refresh when the material changes. Depsgraph tag moved out of the refresh function since that gets called on depsgraph update, which should not trigger a second depsgraph update.
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-16DNA: rename near/far -> clip_start/clip_endCampbell Barton
Rename for Camera, View3D (also CameraParams & Render not DNA)
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-06Undo System: remove accumulate/store modesCampbell Barton
This complicated handling of undo steps in a generic way especially switching between undo systems that stored data to ones that accumulated changes. Now each undo system must treat it's steps as check-point, internally it can apply/rewind changes. This commit also fixes projection paint where the object mode wasn't following the undo steps.
2019-02-03Cleanup: trailing commasCampbell Barton
Needed for clan-format not to wrap onto one line.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-31Fix T61065: missing shader update when adding texture slot.Brecht Van Lommel
2019-01-26Cleanup: blank lines over doxy headersCampbell Barton
2019-01-25Depsgraph: use specific tag to update shadingCampbell Barton
2019-01-24Fix T59650: adding texture paint slot image shows wrong color.Brecht Van Lommel
2019-01-24Fix T60133: texture paint external editing not workingPhilipp Oeser
Operator relys on 3DView and was failing from Topbar and Properties Editor. Now tries to find the biggest 3DView and uses that. Reviewers: brecht Maniphest Tasks: T60133 Differential Revision: https://developer.blender.org/D4215
2019-01-15Cleanup: comment line length (editors)Campbell Barton
Prevents clang-format wrapping text before comments.
2019-01-08Cleanup: comments causing bad clang-format outputCampbell Barton
2018-12-21Fix T59668: UV unwrap pinning bugs.Brecht Van Lommel
With multi object editing it creates the charts twice, which broke some logic in the unwrapper.
2018-11-30Fix T58150: crash in Texture Paint after changing selection in Edit Mode.Alexander Gavrilov
Texture paint code was retrieving the evaluated mesh from the original object, which isn't supposed to happen, so the cached mesh isn't properly cleaned up by Edit Mode toggle.
2018-11-30Cleanup: remove useless depsgraph parameter in some texpaint helper func.Bastien Montagne
2018-11-29Texture Paint: fix artifacts when using masks with symmetry.Alexander Gavrilov
For most brushes, texture painting uses a special mask accumulation table in order to ensure that the amount of added color only increases when the same pixel is touched multiple times by the stroke. Unfortunately, only the mask texture was added to the mask before this check, while normal, stencil, texture alpha masks were applied after this check. This means that the check can pass if e.g. the pressure is increased, but the final mask value is actually lower. One might think that the mask values are fixed per pixel, but with symmetry that isn't true. The result is a nasty stripe artifact due to the discrete cutoff nature of the accumulation test. In order to fix this, apply all masks before accumulation.
2018-11-263D View: remove 3D cursorCampbell Barton
Use 3D cursor from the scene (was previously used for local-view).
2018-11-25Texture Paint: prevent normal angle masking duplicating backface culling.Alexander Gavrilov
If backface culling is off, the user obviously wants to paint on back faces, so the normal angle cutoff designed to prevent painting at glancing angles shouldn't do the culling as a side effect.
2018-11-13Merge branch 'master' into blender2.8Campbell Barton
2018-11-13Cleanup: use lowercase 2d/3d in function namesCampbell Barton
2018-11-07Cleanup: remove some useless BKE_library and BKE_main includes.Bastien Montagne
Makes it simpler to make some changes... Also fix order of some includes (use alphabetical please).
2018-11-01Fix T57553: Python operator popup size does not follow UI scale and DPI.Brecht Van Lommel
Make it the convention to multiply by scaling factor inside the function, so Python scripts that didn't add DPI scale start working correctly.
2018-10-16Mesh: replace derived-mesh with mesh API's for project paintCampbell Barton
2018-10-15Texture Paint: Don't create material if operation is cancelledJacques Lucke
Reviewers: brecht Differential Revision: https://developer.blender.org/D3793
2018-10-05Texture Paint: automatically set default color when adding texture slot.Brecht Van Lommel
2018-09-27Merge branch 'master' into blender2.8Brecht Van Lommel
2018-09-27Spelling fixes in comments and descriptions, patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3732
2018-09-20Texture Paint: unify missing data and slots panels, better auto position nodes.Sebastian Parborg
Differential Revision: https://developer.blender.org/D3694
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-09-11Cleanup: styleCampbell Barton
2018-09-10Texture paint: properly implement image slots for principled BSDF node.Sebastian Parborg
Now we can create new base color, roughness, metallic, specular, normal, bump and displacement images, and linked them to the appropriate socket. Also fixes image nodes inside groups not being visible. Differential Revision: https://developer.blender.org/D3679
2018-07-17Cleanup: moving shading type into View3DShading.Brecht Van Lommel
So all shading settings are in this struct and can be reused in the OpenGL render engine.
2018-07-02Merge branch 'master' into blender2.8Campbell Barton
2018-07-02Cleanup: right shiftCampbell Barton
2018-07-02Merge branch 'master' into blender2.8Campbell Barton
2018-07-02Cleanup: use bool for poll functionsCampbell Barton
2018-06-29Merge branch 'master' into blender2.8Campbell Barton
2018-06-29Cleanup: trailing newlinesCampbell Barton
2018-06-21Cleanup: nuke useless BKE_DerivedMesh.h includes.Bastien Montagne
2018-06-19Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: source/blender/editors/sculpt_paint/paint_image_proj.c
2018-06-19Fix (unreported) passing CDLayer 'ID' instead of bitflag to a cdlayer mask!Bastien Montagne
Probably harmless, since I bet CD_ORIGINDEX is nearly always generated, but still...
2018-06-19Cleanup: remove ref to dm in names in projpaint struct.Bastien Montagne