Blender Git Commits

Blender Git "hair_immediate_fixes" branch commits.

Page: 3 / 32

December 27, 2014, 10:23 (GMT)
Nicer vector math for mouse coordinates.
December 27, 2014, 10:23 (GMT)
Define hair edit settings and brush types in the RNA, similar to paint
and sculpt settings.
December 27, 2014, 10:23 (GMT)
Simplified first version of the hair stroke combing functionality.

Stroke tools will be categorized by the hair elements they operate on:
vertices, segments or strands (roots). In addition to that a filter
function defines the influence of the brush. This should be defined by
the other brush settings and be largely independent of the main tool
mode.
December 27, 2014, 10:23 (GMT)
Lots of small fixes for paint system quirks to make hair brushes work
in the UI.
December 27, 2014, 10:23 (GMT)
Missing bmesh include folder for hair editor in scons.
December 27, 2014, 10:23 (GMT)
New image file icons for hair brush tools and an according tool enum in
the Brush RNA.
December 27, 2014, 10:23 (GMT)
Revert previous hair edit operator scaffolding and port over the old
operator for strokes instead.

The paint system is much too complicated and does not add any real
advantage at this point.
December 27, 2014, 10:23 (GMT)
Calculate some basic info about mouse strokes and context and pass it
on to a general hair tool function.
December 27, 2014, 10:23 (GMT)
Apply the hair matrices when converting from particle keys to bmesh,
so the edit data is consistently in object space.
December 27, 2014, 10:23 (GMT)
Copied high-level operator code from the paint/sculpt system as a basis
for brush-stroke operators in hair edit mode.

Hopefully this can help avoid some redundant code and ensure consistent
keymapping etc.
December 27, 2014, 10:23 (GMT)
CustomData layer for storing hair root locations as MSurfaceSamples.

This requires converting the old messy particle num/num_dmcache/fuv/foffset
data into the new mesh samples, which can potentially introduce floating
point errors and inaccuracies due to lack of face index mapping in the
new system. However, in any well-constructed particle system the hair
roots should be nearest to their num face, so mapping would be accurate
enough. If necessary face index data could be added to samples as a
legacy code hack, but probably it's best to eventually replace the
hair system as a whole anyway.
December 27, 2014, 10:23 (GMT)
Fix for GL buffer size for edges, needs to 2x for two vertex indices.
December 27, 2014, 10:23 (GMT)
Free strand edit memory after use.
December 27, 2014, 10:23 (GMT)
Basic particle data reconstruction when exiting edit mode.
December 27, 2014, 10:23 (GMT)
Store the hair key weight in edit mode.

Currently particles only have a single weight value, controlling
pinning in the simulation (for root and virtual root verts) and goal
force scaling. This will be replaced by a full vertex group weight
system eventually.
December 27, 2014, 10:23 (GMT)
Fix for verts-of-strand iterator: After last edge step has to set the
edge to NULL to avoid infinite looping over the same edge (1-elem disk).
December 27, 2014, 10:23 (GMT)
First customdata layer for particle mass.

This is more for testing purposes, since currently there is only a
single mass property for the psys as a whole. This should change in the
future though, to allow variable mass per strand or vertex.
December 27, 2014, 10:23 (GMT)
New drawing code for hair edit mode.
December 27, 2014, 10:23 (GMT)
Fix for particle-to-bmesh: only was looping over totvert instead of
pa->totkey.
December 27, 2014, 10:23 (GMT)
Removed deprecated code.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021