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-01-28Merge branch 'master' into blender2.8Campbell Barton
2018-01-28Cleanup: style, spellingCampbell Barton
2017-11-22Merge branch 'master' into blender2.8Sergey Sharybin
2017-11-20Fix (unreported) Crash: broken RNA accessors to tesselated MCol data.Bastien Montagne
Regression from rB823bcf1689a3 (VPaint 2017 GSoC, this is not in 2.79 release). Also cleanup, using fake-array-ification to access struct members is generally not a great idea, but when we already have a totally confusing broken struct layout, this is pure evil, as demonstrated here! Found while investigating T53341.
2017-10-18Merge branch 'master' into blender2.8Campbell Barton
2017-10-18Cleanup: Use const for RNA EnumPropertyItem argsCampbell Barton
Practically all access to enum data is read-only.
2017-09-29Merge branch 'master' into blender2.8Campbell Barton
2017-09-29RNA: expose mesh vertex alphaCampbell Barton
Note that some import/export scripts will need updating
2017-09-18Merge branch 'master' into blender2.8Campbell Barton
2017-09-18Cleanup: use clamped rounding functionsCampbell Barton
2017-08-22Cleanup: naming for mesh dirty flagsCampbell Barton
- NOCHECK -> ALL - ALL -> MAYBE_ALL Where 'MAYBE_ALL' checks to see if the mesh has changed. This is clearer that `BKE_MESH_BATCH_DIRTY_ALL` is dirty and going to be updated without any guess-work.
2017-08-01Merge branch 'master' into blender2.8Campbell Barton
2017-08-01Cleanup: use static vars where appropriateCampbell Barton
2017-07-20RNA: face-map accessCampbell Barton
Currently RNA doesn't give us a good way of accessing singleton layers, for now expose as a layer list (skin & paint-pask do this too). Noted in T47811 that this should be changed.
2017-06-26Fix T51559: Update draw cache when changing flat/smooth shadingLuca Rood
This also renames some flags/variables to be more generic for updating purposes. The call used here was previously only used for updating paint data, but as it was reused here, flags and variables were renamed to accomodate more clearly to the new usages.
2017-06-08Replace all old DAG calls with direct calls to new DEG and remove ↵Luca Rood
BKE_depsgraph.h This removes BKE_depsgraph.h and depsgraph.c
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-05-04Vertex paint with draw managerLuca Rood
Reviewers: fclem Subscribers: campbellbarton, dfelinto Differential Revision: https://developer.blender.org/D2658
2017-05-03Weight painting with draw managerLuca Rood
This implements weight rendering with the draw manager, with all drawing options (Shading, wire, face masking, vertex masking). This is part of T51208 Reviewers: campbellbarton Subscribers: dfelinto Differential Revision: https://developer.blender.org/D2654
2016-12-28Various UI message and API doc tweaks and fixes.Bastien Montagne
Mostly from patch D2256 by Aaron Carlisle (@Blendify), thanks!
2016-12-12Refactor RNA property: split flags in property flags, parameter flags, and ↵Bastien Montagne
internal flags. This gives us 9 flags available again for properties (we had none anymore), and also makes things slightly cleaner. To simplify (and make more clear the differences between mere properties and function parameters), also added RNA_def_parameter_flags function (and its clear counterpart), to be used instead of RNA_def_property_flag for function parameters. This patch is also a big cleanup (some RNA function definitions were still using 'prop' PropertyRNA pointer, etc.). And yes, am aware this will be annoying for all branches, but we really need to get new flags available for properties (will need at least one for override, etc.). Reviewers: sergey, Severin Subscribers: dfelinto, brecht Differential Revision: https://developer.blender.org/D2400
2016-10-07Fix T49595: bpy - negative skin_vertices radius crashes BlenderBastien Montagne
This is unsigned value (negative radius does not have much sense anyway!).
2016-09-22RNA/UI: Allow displaying in tooltip why RNA property isn't editableJulian Eisel
This commit allows RNA properties to return additional info on their editable state which may then be displayed in tooltips. To show how it works, it also adds some info for the editable check of proxies. For generally un-editable properties or properties of a linked data-block, RNA returns default strings. | {F362785} | {F362786} | {F362787} | Reviewed by brecht, thanks! Differential Revision: https://developer.blender.org/D2243
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
2015-11-23Cleanup: use `rna_enum_` prefix for RNA enumsCampbell Barton
Definitions could shadow local vars.
2015-11-01Fix T46660: No need to set explicitely UI range of auto smooth angle anymore.Bastien Montagne
2015-10-23Cleanup: rename 'datablocks' -> 'data-blocks'Campbell Barton
Similar to addons -> add-ons, for reading it fits better to hyphenate.
2015-06-17Cleanup: duplicate includesCampbell Barton
2015-06-13Fix T45062: Make it clear in tooltip that 'double sided' mesh option only ↵Bastien Montagne
affects OpenGL (viewport), and not render engines.
2015-05-16BMesh: add UV delimit for select-linked, dissolveCampbell Barton
2015-05-16BMesh: add sharp edge delimiterCampbell Barton
2015-04-23Expose CD_PAINT_MASK to Python APICampbell Barton
D782 by Stanislav Blinov
2015-03-09Fix T43332: Adding polygon int layer failedCampbell Barton
2015-02-20RNA: correct bool callbacksCampbell Barton
2015-02-16Extended RNA support for mesh customdata property layers.Lukas Tönne
Support for user-defined customdata layers (named int, float, string layers) was limited to polygon customdata. This is not accessible in cycles because only tessfaces are used there. Furthermore the polygon attributes were simply described as MeshFloatProperty, MeshIntProperty, MeshStringProperty, omitting the distinction by element type. The patch only adds vertex attributes so far. However, the code now explicitly defines polygon and vertex attributes, so adding edges, loops and tessfaces is much easier should the need arise. Problem is that the RNA definition, which is already much more complicated than the basic DNA/BKE definition of custom properties, now becomes extremely bloated and cumbersome. A simpler solution would be preferable but may not be possible within the constraints of RNA.
2015-02-05Add Custom Loop Normals.Bastien Montagne
This is the core code for it, tools (datatransfer and modifier) will come in next commits). RNA api is already there, though. See the code for details, but basically, we define, for each 'smooth fan' (which is a set of adjacent loops around a same vertex that are smooth, i.e. have a single same normal), a 'loop normal space' (or lnor space), using auto-computed normal and relevant edges, and store custom normal as two angular factors inside that space. This allows to have custom normals 'following' deformations of the geometry, and to only save two shorts per loop in new clnor CDLayer. Normal manipulation (editing, mixing, interpolating, etc.) shall always happen with plain 3D vectors normals, and be converted back into storage format at the end. Clnor computation has also been threaded (at least for Mesh case, not for BMesh), since the process can be rather heavy with high poly meshes. Also, bumping subversion, and fix mess in 2.70 versioning code.
2014-11-30Cleanup: warnings & spaceCampbell Barton
2014-07-21GSOC 2013 paintAntony Riakiotakis
Yep, at last it's here! There are a few minor issues remaining but development can go on in master after discussion at blender institute. For full list of features see: http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.72/Painting Thanks to Sergey and Campbell for the extensive review and to the countless artists that have given their input and reported issues during development.
2014-04-15Math Lib: avoid having to pass a pre-calculated normal tot area_poly_v3Campbell Barton
add normal_poly_v3
2014-04-15Fix my last commit cad4bfe: Added 'use_' prefix to Freestyle edge/face mark ↵Tamito Kajiyama
properties.
2014-04-15Revert part of last commit,Campbell Barton
RNA is low level data access, setting mesh values shouldn't change draw options. Also its redundant to name attrs Face.freestyle_face_mark, removed edge/face from attr names
2014-04-15Freestyle: Added missing mesh property definitions for Freestyle Edge/Face ↵Tamito Kajiyama
marks. This revision also addresses the issue of these properties not shown in the Outliner in the Datablocks display mode. Now Freestyle edge/face marks can be keyframed through the Outliner.
2014-04-15Style cleanup: C & pep8Campbell Barton
2014-04-13Split Normals I (1/5): basis for split normals (nearly nothing user-visible ↵Bastien Montagne
here): * Add a new calcLoopNormals function to DerivedMesh struct, and implement it for CDDM and CCGDM (subsurf). EditDerivedBMesh (edit mode DM) only gets a dummy one in this commit. * Add a tessellated version of CD_LOOPNORMAL layer (CD_TESSLOOPNORMAL), with relevant code to handle it (tessellation, rna access, etc.). * Change auto_smooth options of Mesh (angle now in radian internaly, and toggle is now used to enable/disable split normals in DM creation process). Note BI render code is not touched here, hence its behavior regarding this option is now incoherent, will be addressed in a separate commit. Reviewers: campbellbarton CC: brecht Differential Revision: https://developer.blender.org/D365
2014-02-19Fix T38714: MeshPolygon.center not a Vector typeCampbell Barton
2014-02-09UI: use proportional option while dragging buttonsCampbell Barton
2014-01-24Add convinient access to full bitangent for loops (some export formats like ↵Bastien Montagne
FBX expect full bitangents, better to compute them in C than in python...)
2014-01-11Add tangent space computation/access from RNA (i.e. python).Bastien Montagne
This simply mimics code used for loopnormals, to enable py scripts to generate and access (temporary) a tangent 3D vector and bitangent sign for each loop. Together with the split normals, this allow to recreate a complete tangent space for normal mapping (bitangent = bitangent_sign * cross(normal, tangent)). Expects all faces to be tri or quads. Reviewed By: Brecht, campbellbarton Differential Revision: https://developer.blender.org/D185