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-09-19Cleanup: BLI_expr_pylike argument orderingCampbell Barton
- Order array length after the array. - Put return argument last.
2018-09-19Cleanup: rename BLI_simple_expr -> BLI_expr_pylike_evalCampbell Barton
Simple isn't a good prefix for library names since lots of unrelated modules could be called 'simple'. Include 'py' in module name since this is a subset of Python, one of the main motivations for this is to be Python like/compatible.
2018-09-19Cleanup: styleCampbell Barton
2018-09-18Workspaces: move 2D Animation, VFX and Video workspaces into own templates.Brecht Van Lommel
These can now be acessed from the File > New, Ctrl+N, or the splash screen. Since these are application templates, users can save a separate startup.blend for each. User preferences are shared between these templates though. This also fixes some issues in the default startup.blend (triangulated cube..). Differential Revision: https://developer.blender.org/D3690
2018-09-18Application Templates: make templates more prominent in the UI.Brecht Van Lommel
The goal here is to make app templates usable for default templates that we can ship with Blender. These only have a custom startup.blend currently and so are quite limited compared to app templates that fully customize Blender. But still it seems like the same kind of concept where we should be sharing the code and UI. It is useful to be able to save a startup.blend per template, and I can imagine some scripting being useful in the future as well. Changes made: * File > New and Ctrl+N now list the templates, replacing a separate Application Templates menu that was not as easy to discover. * File menu now shows name of active template above Save Startup File and Load Factory Settings to indicate these are saved/loaded per template. * The "Default" template was renamed to "General". * Workspaces can now be added from any of the template startup.blend files when clicking the (+) button in the topbar. * User preferences are now fully shared between app templates, unless the template includes a custom userpref.blend. I think this will be useful in general, not all app templates need their own keymaps for example. * Previously Save User Preferences would save the current app template and then Blender would start using that template by default. I've disabled this, to me it seems it was unintentional, or at least not clear at all that saving user preferences also makes the current Differential Revision: https://developer.blender.org/D3690
2018-09-18Subdiv: CCG, implement stitching of given facesSergey Sharybin
Will speed up (or rather bring speed back to what it is supposed to be) for brushes like smooth.
2018-09-18Subdiv: CCG, make inner face grids averaging more reusableSergey Sharybin
2018-09-18Subdiv: CCG, initial grids stitching implementationSergey Sharybin
Currently is only working on an "inner" grid boundaries. Need to implement averaging across face edges.
2018-09-18Subdiv: CCG, evaluate final position for multiresSergey Sharybin
This makes it so coordinates and normals for CCG are calculated with mutires displacement taken into account. This solves issues with multires displacement being lost when entering sculpt mode. The missing part is averaging of normals along grid boundaries. But even then sculpting shows decent results. The plan to solve that would be to introduce function to stitch grids, which can also be used by Smooth brush which requires this.
2018-09-18Support evaluating simple driver expressions without Python interpreter.Alexander Gavrilov
Recently @sergey found that hard-coding evaluation of certain very common driver expressions without calling the Python interpreter produces a 30-40% performance improvement. Since hard-coding is obviously not suitable for production, I implemented a proper parser and interpreter for simple arithmetic expressions in C. The evaluator supports +, -, *, /, (), ==, !=, <, <=, >, >=, and, or, not, ternary if; driver variables, frame, pi, True, False, and a subset of standard math functions that seem most useful. Booleans are represented as numbers, since within the supported operation set it seems to be impossible to distinguish True/False from 1.0/0.0. Boolean operations properly implement lazy evaluation with jumps, and comparisons support chaining like 'a < b < c...'. Expressions are parsed into a very simple stack machine program that can then be safely evaluated in multiple threads. Reviewers: sergey, campbellbarton Differential Revision: https://developer.blender.org/D3698
2018-09-17Cleanup: use SCE_GIZMO_ prefix for gizmo_flagCampbell Barton
2018-09-15GP: Initialize new brush factorsAntonioya
2018-09-15Cleanup: styleCampbell Barton
2018-09-14Motion Paths: interactively update current frame location while dragging.Brecht Van Lommel
2018-09-14Fix object motion paths not updating correct after filtering optimization.Brecht Van Lommel
2018-09-14GP: Fix T56802 - Add/Delete Vertex Group crashesAntonioya
2018-09-14Cloth: Improve UILuca Rood
This reorganizes the cloth UI, and changes some of the behaviour to be more reasonable. Changes included here: * Reorganized cloth panels * Improved some tooltips * Removed `vel_damping` option * Removed cloth pinning checkbox * Removed stiffness scaling checkbox * Separated shrinking from sewing * Separated self collisions from object collisions Reviewed By: brecht Differential Revision: http://developer.blender.org/D3691
2018-09-14Multires: Initial work to get sculpting to work with OpenSubdivSergey Sharybin
Allows to go to sculpt mode, do brush strokes, get out of sculpt mode and have deformation preserved. The issues currently is that the current implementation of CCG storage is created from the limit surface, without displacement taken into account. It is trivial to get displaced coordinates, but it is more tricky to get displaced normals. This is something to be solved next. Another limitation is that this only works for sculpting at a maximal multires level. There is code to be done to support propagation of displacement onto a higher levels.
2018-09-14Subdiv: Cleanup, variable name spellingSergey Sharybin
2018-09-14Sculpting: Fix wrong object was using for PBVHSergey Sharybin
The function is supposed to be called for original object. Draw manager abuses this a bit, will solve later by moving PBVH (re)creation to dependency graph. At the time being, stop adding object evaluation to draw manager, this is really where it does not belong to.
2018-09-14Subdiv: Cache Subdiv in CCG surfaceSergey Sharybin
Allows to do re-shaping easier, since we will know for sure what was the limit surface the CCG is created for.
2018-09-14GP: Fix armature deformation weight problemAntonioya
The armature was using only weight 1 or 0, but not the real value. Also removed unused parm in UI panel.
2018-09-13Fix a crash with duplivert, and move to evaluated mesh in object_dupli.cBastien Montagne
There are still lots of issues/TODOs here though, like missing 'cage' for editmesh, etc.
2018-09-13Workspaces: reference count screens, otherwise they are never freed.Brecht Van Lommel
They are not directly accessible in the UI anymore, it's the workspaces that we always keep until they are manually deleted now.
2018-09-12Multires: Use more clear namingSergey Sharybin
There are so many reshapes now, and one more is to come. Better be explicit.
2018-09-12Cleanup, fullstops in commentsSergey Sharybin
2018-09-12Cleanup: make shapekey functions localCampbell Barton
Were only exposed for the BGE.
2018-09-12Cleanup: use _len suffixCampbell Barton
2018-09-11Cleanup: styleCampbell Barton
2018-09-11Multires: Fix memory leak on reshapeSergey Sharybin
Was happening when number of vertices didn't match.
2018-09-11Subdiv: Initial implementation of CCGSergey Sharybin
Attempts to substitude CCGDM with an OpenSubdiv based structure which has less abstraction levels. The missing part in this substitude is a face pointers which old CCGDM/multires code was using to stitch faces (averaging boundaries). Another curial bit missing: "reshaping" of multires CD_MDISPS to the state of new PBVH grids. The new code is only available when OpenSubdiv modifier is enabled (WITH_OPENSUBDIV_MODIFIER=ON) and with debug value of 128. This is so this WIP code is not interfering with current production machines in the studio. Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D3685
2018-09-11Followup for previous PBVH commitSergey Sharybin
Didn't realize the index buffer is stored once in a BVH and same pointer is reused. Surprisingly, simple files were fixed with the previous fix. Now disabled the optimization all together, and it was simpler to just completely remove all residue of the code. It is likely to be a different implementation anyway, so no need to try to keep code in a semi-broken state.
2018-09-11Workspace: support reordering of workspaces from RMB menu.Brecht Van Lommel
Drag and drop will follow later, it's a bit complicated to make this work reliable in the current UI code.
2018-09-11Remaining fix for multiple text-boxesDalai Felinto
As mentioned in d81aeb60fe75 the alignment for multiple text boxes should all respect the same overall padding. Vertical alignment is fully implemented now.
2018-09-10Texture paint: properly implement image slots for principled BSDF node.Sebastian Parborg
Now we can create new base color, roughness, metallic, specular, normal, bump and displacement images, and linked them to the appropriate socket. Also fixes image nodes inside groups not being visible. Differential Revision: https://developer.blender.org/D3679
2018-09-10Fix T56717: crash removing/adding objects.Brecht Van Lommel
Object bases hash always needs to be freed on library remapping.
2018-09-10Cleanup: remove unused field argsCampbell Barton
2018-09-09GP: Improve smooth interpolation calcAntonioya
2018-09-09GP: Fix strange pressure values when drawingAntonioya
This strange values produced an "explosion" of the stoke and it was very annoying.
2018-09-08Fix T56712: Compositor image loader skips frames.Bastien Montagne
Bad removal of 'Fields' option for image sequences...
2018-09-07Silence warning in release modeSergey Sharybin
2018-09-07Subdiv: Add ptex offsets to a subdiv structureSergey Sharybin
This is something what we need to know quite often from various places. Added it as a cached value in Subdiv itself, so it can be queried easily from any area. Shouldn't be a problem from memory usage point of view, it's 4MB per 1M faces coarse mesh. This is very low percentage of mesh itself, and even lower percentage of highres subdivided mesh.
2018-09-06Cleanup: Remove unused modifier evaluation flagSergey Sharybin
2018-09-06Subdiv: Some ground work for CCG supportSergey Sharybin
Nothing really interesting, just starting laying down API which seems to be a decent substitute to CCGDM, without requiring too much work be done in sculpting area.
2018-09-05Merge branch 'master' into blender2.8Sergey Sharybin
2018-09-05CCG: Remove number of layers from keySergey Sharybin
The issue there was that number of layers did not include normals, while element size counts bytes used by normals. This sounds very fragile and dangerous to work further. Also, one value can easily be delivered from another, so it is redundancy going on here. Possible difference now is that multires subdivision will copy normals to a higher levels. Shouldn't be big of a problem, since leaving old normals and updating coordinates is not correct either.
2018-09-05Fix for text alignment on multiple text boxesDalai Felinto
The original code was already making a distinction between lines in the last text box and all lines. However I removed that bit since when I tested the values were the same (I tested with a single text box). Bringing this distinction back. Not addressed here: All boxes should respect the alignment. Which at the moment they don't seem to fully do.
2018-09-05Merge branch 'master' into blender2.8Campbell Barton
2018-09-05Fix T54152: --env-system-scripts fails on win32Ray Molenkamp
2018-09-053D Text: improvements to vertical alignmentDalai Felinto
They way Blender handles vertical alignment is very buggy: - Top-Base: It works perfectly. - Bottom: It is actually bottom-baseline, and it fails when line size is != 1.0 when working with text boxes. - Top: Poorly implemented, it should use font's ascent (recommended distance from baseline), so it has room for accents, but it's not one line distance far from the origin (as it is now). - Center: Poorly implemented. This is tricky since there is no silver bullet. To clear this situation I created a new option (Bottom-Baseline), and addressed the issues above. I'm getting the ascent and descent from freetype2, and use this for padding above/below the text. Also for vertically centering the text.