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-09-10Fix T69432: Hair particle editmode: hiding not workingPhilipp Oeser
PTCacheEditPoint flag PEP_HIDE was not respected at all... Reviewers: brecht Maniphest Tasks: T69432 Differential Revision: https://developer.blender.org/D5739
2019-09-07Cleanup: use post increment/decrementCampbell Barton
When the result isn't used, prefer post increment/decrement (already used nearly everywhere in Blender).
2019-07-10Fix T61770 Multiple Hair Systems Not visible while in particle edit modeClément Foucault
The check was for the whole object instead of individual particle system.
2019-07-08Fix T65534 Eevee don't respect active UVmapClément Foucault
2019-06-21Revert "Particle system: Move runtime data to runtime field"Sergey Sharybin
This reverts commit 36faf739a71624b6ca10cec7233779f9eeace0bd. Somewhat annoying but this change had some unforeseen consequences, which lead to an actual bug. Since this change was not sufficient to get original report fixed is easier to simply revert for now. Fixes T65842: Hair disappears when clicking on particle system name
2019-06-16Fix T65844: wrong eevee hair when vertex colors are used as inputPhilipp Oeser
- was using wrong offset [index instead of index * 4] - also minor correction to variable naming Reviewers: fclem Differential Revision: https://developer.blender.org/D5082
2019-06-13Particle system: Move runtime data to runtime fieldSergey Sharybin
Allows it to be preserved during copy-on-write update when on-geometry related update is needed. This is a required part for T63537, where we need to preserve the entire evaluation data when object is tagged for only RECALC_COPY_ON_WRITE. Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D5023
2019-05-30GPU: Remove GPU_INDEX_U8Clément Foucault
This type of indices is not natively supported on modern GPU and gives warning on some implementation. The memory savings it provides is also quite minimal and unlikely to be visible on nowadays hardware. This remove some uneeded struct members and makes primitive restart always enabled by default. This can be broken by addons if they are not careful enough but many other states have this problem. Also leverage GL_PRIMITIVE_RESTART_FIXED_INDEX if ARB_ES3_compatibility is supported. This removes all API calls to change restart index depending on indices length.
2019-04-24Correct switched values in the previous commit.mano-wii
2019-04-24Fix T62701: Hair edit mode crashes on some old AMD Radeon drivers.mano-wii
The crash is related to the format, but the real reason is unknown.
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-04DRW: Fix hair count being limited by recent refactorClément Foucault
This was making Autumn being half naked. Issue was introduced by rBe72dc667c4d3
2019-03-24Cleanup: redundant use of string formatting functionsCampbell Barton
2019-03-19Fix T61475 Particle edit does not render children if path step > 7Clément Foucault
Gives 2 more bits to the segment count. Also subtract 1 because segment count cannot be negative.
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-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-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-29Cleanup: replace attrib w/ attrCampbell Barton
Also rename GPUVertexAttribs to GPUVertAttrLayers, avoids confusion with GPUVertAttr which isn't closely related.
2019-01-26Cleanup: draw manager headersCampbell Barton
2019-01-24Cleanup: add missing braces to draw managerCampbell Barton
2018-12-18Fix T59484: Particles Lattice deform failsPhilipp Oeser
this was working for object/collection display/render but lattice was not taken into account for non object/collection display/render types (halo, axis, cross, circle, ...) Reviewers: sergey, brecht Maniphest Tasks: T59484 Differential Revision: https://developer.blender.org/D4096
2018-11-28Cleanup: styleCampbell Barton
2018-11-27DRW: Implement Hair Weight drawingClément Foucault
Fixes T57931 Particle weight edit mode is not supported. There is a bug that prevent refresh of the toolsettings on which is based the weight / non-weight display selection (see T58086).
2018-11-27Cleanup: style, includesCampbell Barton
2018-11-26Fix T57930 : Wrong hair shading in particle edit modeClément Foucault
Implement strand selection visualisation but without any shading. I think this is not the overlay job to draw the strands shaded. We can already view the children strands shaded for now but we might add an option to draw the shaded strand instead of (or in addition to) the guide strand.
2018-09-19Merge branch 'master' into blender2.8Brecht Van Lommel
2018-08-23Rename: *_batch_cache_dirty > *_batch_cache_dirty_tagDalai Felinto
2018-07-18GWN: Port to GPU module: Replace GWN prefix by GPUClément Foucault
2018-07-08Cleanup: rename 'ct' to 'len' for gawainCampbell Barton
2018-07-08Cleanup: rename 'ct' to 'len' for size varsCampbell Barton
2018-07-08Cleanup: abbreviate unsigned types (draw manager)Campbell Barton
2018-06-25Draw: Use more proper particles index lookupSergey Sharybin
2018-06-19Particles: Support changing modifiers during particle edit modeSergey Sharybin
The idea is to only use pointers to particles in original object when creating an edit structure. The derived mesh we get from evaluated object. The rest of the commit is just keeping pointers in sync.
2018-06-15Cleanup: code styleCampbell Barton
2018-06-15Hair editing: Use original object's particles for drawingSergey Sharybin
This allows to rely on brush to update children positions, and avoid tag of object. Makes it way faster to comb with children enabled.
2018-06-07Remove printfsClément Foucault
... it's getting late here.
2018-06-07Fix memleak with GPUhairs.Clément Foucault
2018-06-07Draw: Fix crash when tryign to get procedural textures with modifier disabledSergey Sharybin
Maybe disabled modifier check should be done higher in the call hierarchy.
2018-05-30Cleanup: style/whitespaceCampbell Barton
Also use 'uint'.
2018-05-30Cleanup: whitespaceCampbell Barton
2018-05-30DRW: Add new GPU hair system.Clément Foucault
This new system use transform feedback to compute subdivided hair points position. For now no smoothing is done between input points. This new system decouple the strands data (uv, mcol) with the points position, requiring less update work if only simulation is running. In the future, we can have compute shader do the work of the feedback transform pass since it's really what it's meant to. Also we could generate the child particles during this pass, releasing some CPU time. draw_hair.c has been created to handle all of the Shading group creations as well as subdivision shaders. We store one final batch per settings combination because multiple viewport or render could use the same particle system with a different subdivision count or hair shape type.
2018-05-26Cleanup: whitespace, long lines, duplicate includeCampbell Barton
2018-05-16Particle System: ported most DerivedMesh → MeshSybren A. Stüvel
There are a few places where DerivedMesh is still used, most notably when calling the (not yet ported) cloth simulation. There is also still the use of Object.derivedDeform and Object.derivedFinal. Those places are marked with a TODO. Some functions in the editors module were copied to accept Mesh. Those already had 'mesh' in the name; the copies are suffixed with '__real_mesh' for easy renaming later when the DM-based functionality is removed.
2018-05-16Particle System: Pass correct particle index when drawingSybren A. Stüvel
Passing the wrong index caused the particles to stop being shown when the first particle dies.
2018-05-15Particle edit: Support children particles display with copy on writeSergey Sharybin
2018-05-15Particle edit: Move cache update to particle batch cache implementationSergey Sharybin
The idea is to allow "regular" strands to update edit cache and hence get the final update strands.
2018-05-15Draw manager: Pass object to hair batch cacheSergey Sharybin
Currently unused, but is required for an upcoming work.
2018-05-15Particle edit: Decouple caches for regular and edit strandsSergey Sharybin
Makes it possible to have children strands to be visible during combing. Actual implementation still needs work though.
2018-05-11Particle mode: Fix memory leak with simple interpolated childrenSergey Sharybin
2018-05-11Fix crash going to edit mode of particles with copy on writeSergey Sharybin
We can not rely on edit->psys, it is not set for particle edit, and there is some logic deeper inside which does different things dependent on that. We need to replace those checks with some some HAIR vs. PARTICLES flag and always set psys pointer.