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-02-23Cleanup: move variable declarations to headersCampbell Barton
Quiet undeclared variable warning.
2019-02-23readfile: disable delayed data reading for WIN32Campbell Barton
Seeking the file causes slow down on Windows. Resolves T61855
2019-02-23Fix: Workbench assert on non-image texture nodeDalai Felinto
This was not report, but it would happen if you open the sample file from T61858 and changed to solid view with texture.
2019-02-22Cleanup: Remove redudant function callDalai Felinto
BKE_main_id_clear_newpoints is already called from copy_object_set_idnew().
2019-02-22Fix T61837: Assert in Eevee multiresolution modfier in sculpt modeClément Foucault
Note that this commit remove the support (that was not really working) for shadows in sculpt mode.
2019-02-22Multires: Support smooth shading when sculptingSergey Sharybin
On CCG side it is done similar to displacement, where we have a dedicated functor which evaluates displacement. Might be seemed as an overkill, but allows to decouple SubdivCCG from mesh entirely, and maybe even free up coarse mesh in order to save some memory. Some weak-looking aspect is the call to update normals from the draw manager. Ideally, the manager will only draw what is already evaluated. But it's a bit tricky to find a best place for this since we avoid dependency graph updates during sculpt as much as possible. The new code mimics the old code, this is how it was in 2.7. Fix shading part of T58307.
2019-02-22Fix T55921: Toggling visibility for collections doesn't work in PoseDalai Felinto
It is always dangerous to add more shortcuts those days. But this way it is consistent with 2.79 to a point. When in edit mode (mesh, greasepencil, ...) 1-3 to change submode still has priority. When in posemode or greasepencil draw mode however, 1-9 can still be used to temporarily get some collections out of the way.
2019-02-22Wireframe: Add object and random coloring option in wireframe modeClément Foucault
The option is separated from the solid mode color option. Random color uses the same method as solid mode. Selection state is indicated by a brighter color that is outside the brightness range of the unselected state colors. The active state is indicated by the outlines that is, now, still drawn in wireframe mode. Coloring of the selection / active outline is not optimal because it can look ugly in some cases of color combination. But the outline color is using index range coloring so it's not trivial to change the color of the outline per object. For now we use the same outline color used in solid mode for consistency and also still add an emphasis on the selected objects. The Single color option uses the theme color. Maybe it would be nice to change the name of it in a latter commit to avoid confusion.
2019-02-22Fix T61788: Hidden objects reappear after renderingDalai Felinto
The change in outliner and viewport visibility (897e047374fa) was made assuming the bases of the render and viewport depsgraph were independent. Thus we were deliberately setting base visibility when rendering: ``` /* When rendering, visibility is controlled by the enable/disable option. */ if (mode == DAG_EVAL_RENDER) { base->flag |= BASE_VISIBLE; } ``` However, we were syncing data back to the original depsgraph, leading to hidden viewport objects to re-appear. Reviewers: sergey Differential Revision: https://developer.blender.org/D4391
2019-02-22Merge branch 'blender2.7'Sergey Sharybin
2019-02-22Fix previous commitSergey Sharybin
Somehow quote got missing the last moment.
2019-02-22Merge branch 'blender2.7'Sergey Sharybin
2019-02-22Always show version when running in background modeSergey Sharybin
The goal is to make it easy to know which exact blender version and built was used for a job on a farm. This includes but not exclusively render farms. But same is handy for simulation tasks as well.
2019-02-22Fix T61600: Physics properties inactive when appending objectsDalai Felinto
This problem existed in 2.79 as well. The rigid body setting is related to the scene the object was created. We now clear all the rigid body properties of the appended objects to prevent them from lingering in this state where they have settings yet cannot be used in the simulation. Reviewers: mont29, brecht Differential Revision: https://developer.blender.org/D4380
2019-02-22Multires: Don't force smooth shadingSergey Sharybin
There is still work needed to be done from multires side to fully support smooth shading. So can't just always have smooth shading. Roll back to a proper code in GPU side, the rest will be handled from CCG side.
2019-02-22Multires: Fix ownership problem causing crashesSergey Sharybin
Fixes crash when leaving multires mode. Fixes T61836: Saving while in multires makes blender crash
2019-02-22Revert "makesrna: Fix build error on windows."Campbell Barton
This reverts commit 8b235dd2e3995a61e2a7db1ac2bc9eefe1394456.
2019-02-22C logging: make pthread use optionalCampbell Barton
There is no need for threading for makesrna/makesdna, disable it to avoid hassles linking build time utilities.
2019-02-22Cleanup: function wrapping, spellingCampbell Barton
2019-02-22Comments: add doxy sections to readfile.cCampbell Barton
Some minor changes to arrange code into useful sections too.
2019-02-22readfile: support blend files over 2gbCampbell Barton
Should work for 4gb+ files too however I wasn't able to test that.
2019-02-22readfile: reduce memory usage at load timeCampbell Barton
Delay loading all DATA sections of the blend file until they're needed. Loading all data-blocks caused high peak memory usage especially with libraries - since a lot of data may exist which isn't used directly. In one test (spring project: 10_010_A.anim.blend), peaked at ~12.5gig, dropping back to ~2.5gig once loaded. With this change peaks memory usage reaches ~2.7gig while loading. Besides this there are some minor gains from not having to read data from the file-system and we can skip an alloc + memcpy reading data written with the same version of Blender.
2019-02-22Cleanup: rename seek to file_offsetCampbell Barton
Prepare for seek callback to be added.
2019-02-22Sculpt Overlay: Fix mask drawn as flat shaded when smooth shading enabledClément Foucault
Removes the flat shader variant since the attrib is specified for each vert loop in flat shaded mode. It was something leftover from the previous implementation.
2019-02-22GPUBuffers: Fix/cleanup multires implementationClément Foucault
The multires sculpt drawing was a not working in smooth mode. Also hidding was not supported by the wireframe overlay and flat shaded faces. Codewise it is cleaner and index buffers are only updated if the smoothing changes.
2019-02-22Cleanup: make BHeadN private in readfile.cCampbell Barton
Also add macro for accessing BHeadN from BHead.
2019-02-22Missed last commitCampbell Barton
Harmless but not renamed as intended.
2019-02-22Cleanup: rename readfile API functionsCampbell Barton
- blo_bhead_first (was blo_firstbhead) - blo_bhead_next (was blo_nextbhead) - blo_bhead_prev (was blo_prevbhead) - blo_bhead_id_name (was bhead_id_name) - blo_filedata_free (was blo_freefiledata) - blo_filedata_from_file (was blo_openblenderfile) - blo_filedata_from_memory (was blo_openblendermemory) - blo_filedata_from_memfile (was blo_openblendermemory)
2019-02-22Missed last commitCampbell Barton
2019-02-22Cleanup: comments, use bool for 'eof' variableCampbell Barton
Also remove unused members headerdone, inbuffer & filedes, use typed enum for file data flags.
2019-02-22Transform: redo resize now constrains axis valuesCampbell Barton
Before 1bfbfa281046b this wasn't essential because the constraints prevented the axes from being applied. Now redo ignores constraints - the input values must be constrained.
2019-02-22makesrna: Remove usage of dynamically linked pthreads4wRay Molenkamp
With pthreads now being static, there is no more reason to copy the dll.
2019-02-22Windows: Use static pthreads library.Ray Molenkamp
2019-02-22Windows: Use static pthreads library.Ray Molenkamp
2019-02-21UI: enum property menus now expand down, consistent with other menus.Mikhail Rachinskiy
Differential Revision: https://developer.blender.org/D4359
2019-02-21Merge branch 'blender2.7'Brecht Van Lommel
2019-02-21UI: better widget drawing with thick line width.Harley Acheson
When the line width was larger than the UI scale, there was not enough space for thicker widget outlines to draw properly. Now widgets are made a little larger to accommodate the thicker outlines. Differential Revision: https://developer.blender.org/D4368
2019-02-21UI: improve corner splitting feedback by showing custom cursors.Harley Acheson
* Two cursors for horizontal and vertical split. * Four cursors for each join direction. * One cursor to indicate when splitting is not possible. Differential Revision: https://developer.blender.org/D4264
2019-02-21UI: increase corner splitting hit area to include screen edges.Harley Acheson
Differential Revision: https://developer.blender.org/D4242
2019-02-21makesrna: Fix windows build.Ray Molenkamp
makesrna requires the pthread dll to be available before it can run.
2019-02-21Fix T60646: From instancer texture coordinate doesn't work in viewportSergey Sharybin
Made it so that generated coordinate is always calculated. Ideally, it will only be done depending on a current shading, but code is quite deep, and doing smarter thing here will end up in way bigger refactor. First, make things working, and then make them fast if they pop up in a profiles.
2019-02-21Fix T61810: Cycles OpenCL denoising broken after recent changes.Brecht Van Lommel
2019-02-21Cycles OpenCL: Motion Blur Compile DirectivesJeroen Bakker
When using preview rendering through a camera or final rendering the `scene.render.use_motion_blur` was not respected when building the compile directives. This patch will when building the compile directives check if motion blur is enabled at all. This should lead to more efficient kernels when no motion blur is needed. Tags: #cycles Differential Revision: https://developer.blender.org/D4387
2019-02-21Fix for Fix (c) T61787: Duplicating a collection instance does not duplicate ↵Bastien Montagne
the dupli_group. Wrong logic in bitflags handling in own previous commit...
2019-02-21Fix (unreported) Broken DataTransfer modifier when source object is in Edit ↵Bastien Montagne
mode. Just use common API func to get evaluated mesh of other object in modifiers, instead of doing our own cooking. ;)
2019-02-21Fix T61787: Duplicating a collection instance does not duplicate the ↵Bastien Montagne
dupli_group. Transfomr init code called just after duplication (presumably before regular depsgraph update is executed) would erase new objects' transflags. This is more like a hack than a real fix, but since that transform piece of code is already a hack... Other solution would have been to force DEG to run after object duplication, think it's better to go with that solution for now. Not to mention to fact that dupli flags are put into transflag... ;)
2019-02-21Cleanup: typos in comments.Bastien Montagne
2019-02-21Fix T59338: Blender crashes immediately after loading attached file in ~80% ↵Bastien Montagne
of my attempts. Issue was a concurrent modification of an evaluated mesh by two other meshes using it as source for custom normals data transfer. Note that this fixes the crash (modifiers are strictly forbidden to modify any data besides their own!), but now will have to add a new CD type to be able to specifically request 'computed' clnors data layer, and not only 'encoded' one, for source mesh...
2019-02-21Merge branch 'blender2.7'Sergey Sharybin
2019-02-21Fix T61802: EXR preview JPEGs don't have the correct colorSergey Sharybin
Missing color management, probably from the very beginnings of the OCIO integration.