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-02-15Simple hair children: Make twist affected by textureSergey Sharybin
This completes twist feature, which is now possible to also control by texture. Since textures can not easily contain negative values as well, same trick with 0.5 neutral as vertex groups is used. All in all, this twist features allows to do following things. Original hair: {F2287535} Hair with scientifically calculated twist value of 0.5: {F2287540} And we can also twist braids in opposite directions dependent on left/right side: {F2287548}
2018-02-15Fix T54078: Adding subsurf prior to particle system breaks simple children ↵Sergey Sharybin
vgroups and textures cpa->num points to a face index on BASE mesh, but get_child_modifier_parameters() expects index on a FINAL dm. So wrong index was used here.
2018-02-15Simple hair children: Make twist affected by vertex groupSergey Sharybin
The idea is to give a control over direction of twist, and maybe amount of twist as well. More concrete example: make braids on left and right side of character head to be twisting opposite directions. Now, tricky part: we need some negative values to flip direction, but weights can not be negative. So we use same trick as displacement map and tangent normal maps, where 0.5 is neutral, values below 0.5 are considered negative and values above 0.5 are considered positive.
2018-02-15Simple hair children: Initial implementation of twist controlSergey Sharybin
It allows to have children hair to be twisted around parent curve, which is quite an essential feature when creating hair braids. There are currently two controls: - Number of turns around parent children. - Influence curve, which allows to modify "twistness" along the strand.
2018-02-15Particles: Wrap insane amount of arguments to child modifier evaluationSergey Sharybin
Use single structure. It seems we will need to pass more information soon, so better to do it via the structure.
2018-02-15Cleanup: styleCampbell Barton
2018-02-14Particles: Avoid multiple function declarations in multiple placesSergey Sharybin
This makes it really hard to spot errors when function signature changes.
2018-02-14Particles: Cleanup, remove trailign whitespaceSergey Sharybin
2018-02-14Hair child: Use clamp function to clamp curve evaluationSergey Sharybin
Avoids redundant calls to the curve evaluation.
2018-02-12BKE_addon: new/free/ensure functionsCampbell Barton
2018-02-09Fix crash with font on curveSergey Sharybin
Was a mistake from recent texspace changes. Reported by Pablo here in the studio!
2018-02-08Mesh: concave quad supportCampbell Barton
Previously quads always split along first-third vertices. This is still the default, to avoid flickering with animated deformation however concave quads that would create two opposing triangles now use second-fourth split. Reported as T53999 although this issue has been known limitation for a long time.
2018-02-07Cleanup: add _types.h suffix to DNA headersCampbell Barton
2018-02-06Use eObjectMode for function argumentsCampbell Barton
2018-02-03Cycles: add Vector Displacement node and extend Displacement node.Brecht Van Lommel
This adds midlevel and object/world space for displacement, and a vector displacement node with tangent/object/world space, midlevel and scale. Note that tangent space vector displacement still is not exactly compatible with maps created by other software, this will require changes to the tangent computation. Differential Revision: https://developer.blender.org/D1734
2018-02-02Fix T53980: IK influencing REST POSE with New DepsgraphSergey Sharybin
2018-02-01Fix T53686: VSE Render crash when zooming timeline.Bastien Montagne
Epic fail from recent 'security' fixes (rBe04d7c49dca9). ;) To be backported to 2.79a!
2018-02-01Cleanup: rename BLI_*_empty() -> clear()Campbell Barton
Consistent with other BLI API's
2018-01-31Fix possible concurency issue in mesh normals computation.Bastien Montagne
Failure in own code from last December, thanks @sergey for finding it. To be backported to 2.79a.
2018-01-30Fix T53943: Weight paint crash in new sceneCampbell Barton
2018-01-29Fix: Disable leftover debug prints from earlier work on the rna path ↵Joshua Leung
renaming/fixing code
2018-01-25Fix T53363: Blender won't update mesh's usercount when deleting object ↵Bastien Montagne
datablocks in Editmode. Only do special handling of ob->data pointer in case we are remapping to a valid (non-NULL) other obdata. Otherwise, handle it as any other 'remapping to NULL' case. Hopefully not breaking anything else...
2018-01-25UI: change tool-tips to be stored in the screenCampbell Barton
Move timer and tip out of button code, now the only requests a tooltip, passing a creation callback to run. Needed for manipulators in 2.8, also helps de-duplicate logic - since we never want multiple tool-tips showing at once.
2018-01-24Fix (unreported) missing feature in ccgdm pbvh generator.Bastien Montagne
Compared to usual cddm one, ccgdm one was not applying the ob->derivedDeform deformation to the pbvh generated from the original mesh geometry, when possible.
2018-01-24Fix T53551: Weight paint crash when subsurf modifier is not first (master ↵Bastien Montagne
not 2.79). We can only support painting from subsurf DM in a limited subset of cases, others (like multiple subsurf, or topology-modyfying ones, break mapping to original geometry). This is not the most ideal fix (ideally, we should always be able to get a mapping to original geometry from any point in modifiers stack...).
2018-01-24BKE's modifier_isEnabled: add check on NULL Scene pointer.Bastien Montagne
We do not always have that one available, and even without the isDisabled callback this func is helpful. Note that this is a bot stupid, only modifier actually needing a valid Scene pointer here is subsurf... :|
2018-01-23Cycles: add Displacement node.Brecht Van Lommel
This converts object space height to world space displacement, to be linked to the new vector displacement material output. Differential Revision: https://developer.blender.org/D3015
2018-01-21Cleanup: styleCampbell Barton
2018-01-21Fix old files with changed node socket type not loading correctly.Brecht Van Lommel
This would lead to sock.default_value pointing to the wrong data type, possibly causing crashes. Unfortunately, this bug will still exist for older Blender versions that try to load newer files, which makes changing the type of a node socket problematic.
2018-01-19Util function to determine number of digits from an integerDalai Felinto
2018-01-19Fix T53823: Particle weight brush crashCampbell Barton
Entering particle edit mode w/ the weight brush enabled crashed on non-hair particle systems.
2018-01-19Fix T53832: Particle weight paint crashCampbell Barton
Drawing hair weights read before the hair array start. This code could be improved since it currently copy-pastes, from do_particle_interpolation, but this would need larger changes. For now just correct existing logic.
2018-01-18Fix memory leak in recent curve refactorCampbell Barton
5b25605761fb7
2018-01-18Fix T53808: VSE doesn't show scene strip markersCampbell Barton
2018-01-18Fix weight particle brush versioningCampbell Barton
2018-01-18Fix buffer overflow vulnerability in curve, font, particles code.Brecht Van Lommel
Solves these security issues from T52924: CVE-2017-12102 CVE-2017-12103 CVE-2017-12104 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
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
2018-01-16Cleanup: Naming of depsgraphSergey Sharybin
2018-01-16Cleanup: indentationCampbell Barton
2018-01-15Sculpting: Sdd an option to hide mask in viewportSergey Sharybin
Brushes themselves are still affected by the mask, but the viewport is not showing the mask. This way it's easier to see details while sculpting. Studio request by Julien Kaspar
2018-01-15GPU buffers: Use bitflag to whether we want to show diffuse colorSergey Sharybin
Those fine-tuning bits will be extended soon, so makes sense to start using some more verbose flag names when calling functions.
2018-01-12User Prefs: add new flag for app-template optionsCampbell Barton
For experimental options, outside the scope of typical preferences. While templates are developed we might want to make changes to behavior which aren't fully compatible with typical work-flows. Instead of mixing these options in with current preferences expose separately (we could even force disable them when templates aren't int use)
2018-01-11Cleanup commented out OMP command.Bastien Montagne
2018-01-11Nuke OMP from multires.c: forgot that one in previous commit.Bastien Montagne
Gives same kind of speedup too, 8.7ms with old OMP code, 2.7ms with new one, with same level-4 multires monkey head.
2018-01-11Nuke OMP usage in multires.c.Bastien Montagne
New code is over three times quicker than old one here (e.g. Suzanne subdiv level 4, 250k tris, threaded part is now 1.4ms instead of 4.5ms with OMP).
2018-01-11Preparation step for nuking OMP from multires code.Bastien Montagne
Remove the critical OMP sections used to protect mem allocation. First one can be done in a separate loop before main, parallelized one. Second one only affect 'private' data, so we only need to ensure guardedalloc thread safety is enabled. This is committed as separated step to ease troubleshooting in case bisecting becomes necesary.
2018-01-11Subsurf: Allow partial threading over geometry arraysSergey Sharybin
This helps avoiding threading overhead when having lots of system threads..
2018-01-11Mesh evaluate: Tweak threadability criteriaSergey Sharybin
Gives measurable speedup on layout scenes from Spring. Actual value for chunk size is a subject for more scientific research.
2018-01-11Subsurf: Make copyFinalLoopArray() threadedSergey Sharybin
Gives about 40% speedup of object which has simple-ish deformation applied on top of subdivided mesh. This might easily happen with single character animation.
2018-01-11Subsurf: Use regular mutex instead of RW oneSergey Sharybin
Mutex is now local to particular CCGDM, and guarding edge hash which is only used by a single function only. There is no need to acquire read lock after edge hash was created.