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
path: root/source
AgeCommit message (Collapse)Author
2018-02-15Merge branch 'master' into blender2.8Sergey Sharybin
2018-02-15Cleanup: use '_len' instead of '_size' w/ BLI APICampbell Barton
- When returning the number of items in a collection use BLI_*_len() - Keep _size() for size in bytes. - Keep _count() for data structures that don't store length (hint this isn't a simple getter). See P611 to apply instead of manually resolving conflicts.
2018-02-15Cleanup: Style, braces with macrosSergey Sharybin
See https://wiki.blender.org/index.php/Dev:Doc/Code_Style#Braces_with_Macros
2018-02-15Cleanup: Remove BLI_ prefix from listbase macroSergey Sharybin
This is kind of doesn't matter where macro itself is defined. We should stick to the following: - If some macro is actually more an inline function, follow regular function name conventions. - If macro is a macro, type it in capitals. Use module prefix if that helps readability or it if helps avoiding accidents.
2018-02-15Merge branch 'master' into blender2.8Sergey Sharybin
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-15Blenlib: Assert when attempting to rotate point around vector and store ↵Sergey Sharybin
result in the point This isn't supported since there are subsequent reads to all point coordinates after modification started. Probably we need to create a temp copy of point, but that's like extra CPU ticks.
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-15Avoid unnecessary sqrt callsCampbell Barton
2018-02-15Fix crash when rendering particles with cyclesMai Lavelle
view_layer is NULL when the render engine is created, this gets passed around and ends up in this code causing a crash. This should be reverted after the render engine api is updated to set view_layer.
2018-02-15Make particle edit draw mode a noopMai Lavelle
Seems this was just a template, but that template painted everything green. Not sure what this draw mode should do really.
2018-02-15Fix lack of particles updates and disappearing particlesMai Lavelle
The conditionals in particle code are... some sort of madness... I'm not even sure what the correct behavior should be from looking at it. In this case the path cache generation was being skipped in edit mode.
2018-02-15Tag update when using particle edit brushesMai Lavelle
2018-02-15Fix crash with particle cut brush and other brushesMai Lavelle
Why is bedit->data.context NULL?
2018-02-15Start bringing back particle editMai Lavelle
Its kind of broken, but have to start somewhere
2018-02-15Add versioning code to make particles with default size visible againMai Lavelle
Due to changes in draw code particles from old files that may have had a default draw size of 0 will not be visible. Old draw code would check for this and adjust the size, however the unit for draw size has changed from pixels to BU, and it no longer makes sense to have such checks. This patch is to ensure particles from such files remain visible.
2018-02-15Merge branch 'master' into blender2.8Campbell Barton
2018-02-15Cleanup: style, warningCampbell Barton
2018-02-15Cleanup: styleCampbell Barton
2018-02-15Fix T54072: Crash splitting edgesCampbell Barton
2018-02-14Merge branch 'master' into blender2.8Brecht Van Lommel
2018-02-14Cycles: restore Particle Info Index for now, keep it next to Random.Brecht Van Lommel
It seems to be useful still in cases where the particle are distributed in a particular order or pattern, to colorize them along with that. This isn't really well defined, but might as well avoid breaking backwards compatibility for now.
2018-02-14Eevee: Fix broken AO and Contact shadows on certain platform.Clément Foucault
This was caused by ce0f70fbd62fc812a2508c27a2f392cde0acbdfa
2018-02-14DRW: Refactor: Less feature duplication with Gwn.Clément Foucault
This removes the need of custom attribs for instancing. Instancing works fully with dynamic batches & Gwn_VertFormat now. This is in prevision of the VAO manager patch.
2018-02-14DRW: Add instance buffer manager.Clément Foucault
This manager allows to distribute existing batches for instancing attributes. This reduce the number of batches creation. Querying a batch is done with a vertex format. This format should be static so that it's pointer never changes (because we are using this pointer as identifier [we don't want to check the full format that would be too slow]). This might make the original Instance Data manager useless but it's currently used by DRW_object_engine_data_ensure().
2018-02-14GWN: Add new dynamic type of batches and removeClément Foucault
Theses batches keeps their memory chuck allocated after transfer to be reused and updated very often. NOTE: This commit break instancing in DRW. (it's fixed in the next commit)
2018-02-14DRW: Refactor: Make use of the new Gawain long attrib support.Clément Foucault
2018-02-14Merge branch 'master' into blender2.8Brecht Van Lommel
2018-02-14Cycles: change Index output of Hair and Particle Info to Random, in 0..1 range.Brecht Van Lommel
These are used for randomization, so it's convenient if the index is already hashed and consistent with the Object Info node.
2018-02-14GPU: use alpha blend that works for drawing to transparent buffer.Brecht Van Lommel
It's unlikely to ever be intentional to square the source alpha, as happens with glBlendFunc, so this changes the blending throughout the code.
2018-02-14GPU: don't use multisample for entire window, only for offscreen 3D viewport.Brecht Van Lommel
Now that the new 3D viewport draws to a multisample offscreen buffer, there is no good reason anymore to create an entire multisample window and pay the performance/memory cost for other regions that don't need it. GL_MULTISAMPLE now only gets enabled for offscreen buffers, so we don't need to check for it throughout the UI code anymore. Differential Revision: https://developer.blender.org/D3062
2018-02-14Fix incorrect RNA path to view_render settings.Brecht Van Lommel
2018-02-14Code cleanup: simplify subwindow code.Brecht Van Lommel
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-14Math utils: Add clamping functionsSergey Sharybin
2018-02-14Object Mode: remove Scene.obeditCampbell Barton
This means we can support having the same scene in different windows with different edit-objects.
2018-02-13GPU: add offscreen buffer drawing utility functions.Brecht Van Lommel
2018-02-13Code cleanup: stop using rectangle textures in window draw, simplify code.Brecht Van Lommel
2018-02-13Code cleanup: fix incorrect reading of GL scissor coordinates.Brecht Van Lommel
These are often the same as the viewport, but not always.
2018-02-13Code cleanup: remove unneeded gla* 2D drawing functions.Brecht Van Lommel
2018-02-13Fix blenderplayer build.Brecht Van Lommel
2018-02-13Merge branch 'master' into blender2.8Campbell Barton
2018-02-13Add ED_object_editmode_exit_exCampbell Barton
Allow exiting editmode from non-active scene.
2018-02-13Cycles: Implement index output for hair nodeSergey Sharybin
This is like the only way to add variety to hair which is created using simple children. Used here for the hair. Maybe not ideal, but the time will show.
2018-02-13Object Mode: remove Scene.obedit for RNACampbell Barton