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-07-31Spelling fixes in comments and descriptions, patch by luzpazBrecht Van Lommel
Differential Revision: https://developer.blender.org/D3744
2019-07-31Fix error in user preferences commitCampbell Barton
Add include & initialize variable.
2019-07-31Fix T67652: editing UV vertex location does not work with multiple objectsBrecht Van Lommel
Patch contributed by matc. Differential Revision: https://developer.blender.org/D5355
2019-07-31Cleanup: remove BLO_update_defaults_userpref_blendCampbell Barton
Merge into BKE_blendfile_userdef_from_defaults
2019-07-31Preferences: don't store preferences in the startupCampbell Barton
Simplify preferences by removing the ability to load them from either the startup.blend or userpref.blend. Also simplifies updating default preferences by moving them to a struct definition.
2019-07-31UI: tweak naming in snapping popover to be "Snap with" and "Snap to"EitanSomething
To replace "Target" and "Snapping", this should be more clear. Differential Revision: https://developer.blender.org/D5242
2019-07-31Sculpt/Paint: Brush curve presetsPablo Dobarro
This patch introduces the same presets that are used for proportional editing in the brush falloff menu. The user can select any of these presets or use the regular custom falloff curve. The presets are hardcoded formulas, so the falloff curve is not used when they are active. This change improves the general feeling of the brushes and it is more convenient and simpler to use. The CUSTOM curve option should now be used in the case that an unusual deformation is needed, in other cases, the hardcoded curve presets should be the default. The smooth curve presets is a must in the grab brush, as it fixes the deformation issue with the current custom curve setting. The user may try to adjust the deformation by tweaking the curve, but it is nearly impossible to replicate this desired behavior. {F7636217} Other brushes that are included in the sculpt branch also rely on this as they need specific hardcoded falloffs to produce the desired effect. Reviewers: brecht, billreynish Reviewed By: brecht Subscribers: JulienKaspar Differential Revision: https://developer.blender.org/D5367
2019-07-31FIx T66019: Text cutoffs for descriptions in keyframe insertion (keyingsets).Bastien Montagne
2019-07-31Added BKE_mesh_clear_geometry() functionSybren A. Stüvel
This function makes it possible to clear/remove/nuke all the geometry in a mesh, allowing functions like `Mesh.from_python()` to construct a new mesh in its place. Without this function, code like in T67627 have to allocate a new Mesh datablock, fill that, and swap out the old Mesh for the new one. This introduces issues when exporting, as the new mesh could be seen by an exporter as unrelated to the old one. Shape keys are not freed by this function. Freeing those would require tagging the depsgraph for relations update, which is an expensive operation. They should be removed explicitly if necessary. Material slots are also not cleared by this function, in the same way that they are not cleared when manually removing all geometry from a mesh. The `BKE_mesh_clear_geometry()` function is available in Python as `mesh.clear_geometry()`. Reviewed by: mont29, brecht Differential Revision: https://developer.blender.org/D5373
2019-07-31Cleanup: Use explicit forward declarationSergey Sharybin
2019-07-31UI: remove checks for other popovers when switching menuCampbell Barton
I'm unable to redo the original report, Revert fix for T43247..
2019-07-31UI: simplify check for active menu buttonCampbell Barton
Dragging to select another popup now checks the menus active button.
2019-07-31Particle: Cleanup, remove unused depsgraph argumentSergey Sharybin
2019-07-31Cleanup: Remove unused functionsSergey Sharybin
2019-07-31FFmpeg: Added support for writing Opus audio.Sybren A. Stüvel
This audio format is often used in conjunction with VP9 video in a WebM container. Opus was created with the intention to replace Vorbis and Speex ([source](https://en.wikipedia.org/wiki/Opus_(audio_format))). Reviewed By: brecht Differential Revision: https://developer.blender.org/D5156
2019-07-31FFmpeg: Added writing of WebM containersSybren A. Stüvel
This commit adds support for the WebM container. Previously we only supported the WebM/VP9 video codec, but still required that it was stored in a Matroska, MP4, or other compatible container format. Reviewed By: brecht Differential Revision: https://developer.blender.org/D5156
2019-07-31FFmpeg: Added support for writing alpha values in WebM/VP9 videoSybren A. Stüvel
The VP9 video codec supports writing alpha values; now this is available in Blender too. Reviewed By: brecht Differential Revision: https://developer.blender.org/D5156
2019-07-31Cleanup: Simplification of `BKE_ffmpeg_alpha_channel_is_supported()`Sybren A. Stüvel
Simplified `BKE_ffmpeg_alpha_channel_is_supported()` to use `ELEM()` instead of a row consecutive `if`-statements. No functional changes. Reviewed By: brecht Differential Revision: https://developer.blender.org/D5156
2019-07-31DRW manager: select engine: create generic draw_select_id_meshmano-wii
2019-07-31Cleanup: Rearrange Select Engine into multiple filesmano-wii
2019-07-30cleanup: Fix typo in last commitLazydodo
Accidentally took the C flags as a base.
2019-07-30CMake/Windows: Enable JMC on compilers that support it.Lazydodo
JMC [1] enables more productive debugging of C++ code in visual studio this change enables it on debug builds for builds with visual studio 15.8 or higher. [1] https://devblogs.microsoft.com/cppblog/announcing-jmc-stepping-in-visual-studio/
2019-07-30DRW manager: select engine: remove redundant callsmano-wii
2019-07-30Cmake/windows: Fix vcpkg bypassing our libs folder.Lazydodo
Occasionally we get reports of people that build blender and end up with either build errors or end up with builds that do not run on other systems. The root cause is when you install vpckg and integrate it into the build system it puts the search path for its includes and libraries before anything else. previously we told people to either uninstall vcpkg or remove the conflicting packages, which was not great. this change opts out of the use of vcpkg for blender only, so people can keep using it for other work without issues.
2019-07-30Fix T67939: GPencil Noise modifier step is ignored in renderAntonio Vazquez
The value of the step was calculated using a variable that was removed when the render frame change. Now, the step is calculated using the modulus of the current frame and recalculate noise only if the remainder that results from performing integer division is equal to 0. To calculate current frame, the first used frame is calculated to adjust real frame range. This approach is more stable in viewport and render.
2019-07-30Fix snap package to work with 2.80 version numberBrecht Van Lommel
Without this it rounds to 2.8.
2019-07-30Fix T65691: GPencil Drawing long strokes turn invisibleAntonioya
There was a fixed limit to the number of points available in a buffer stroke. Now, the array is expanded as needed using a predefined number of points for each expansion, instead to add one by one. This is done to reduce the number of times the memory allocation is required. As part of the fix, some variables have been renamed to reflect better their use.
2019-07-30Alembic export: fix exporting of loop normalsSybren A. Stüvel
When the mesh is using custom normals, those should always be exported, regardless of the `ME_SMOOTH` flag on the invidivual polys. Also replaced the loop normal writing with the same logic as we use for reading (less pointer arithmetic, more normal counting).
2019-07-30Alembic import: load face-varying normalsSybren A. Stüvel
Loop normals are called 'Face-varying normals' in Alembic. Before this commit, the existence of such normals was used to enable smooth shading. This is incorrect, as the normals could encode flat faces just as well. This commit adds the loading of these normals as custom loop normals. It then also enables Auto-Smoothing on the mesh (which is a bit of a misnomer and indicates to Blender that the custom normals should be used). Fixes the glitching described in T65959. Differential Revision: https://developer.blender.org/D5191
2019-07-30Cleanup: Alembic: renamed 'smooth_normals' to 'export_loop_normals'Sybren A. Stüvel
The name now indicates what happens when the variable is set to true. No functional changes.
2019-07-30Alembic: changed 'void *user_data' to 'Mesh *mesh'Sybren A. Stüvel
The only thing that is stored in this pointer is a `Mesh*`, and casting it from/to `void*` is unnecessary and confusing. Maybe the entire CDStreamConfig class could/should be removed at some point. No functional changes.
2019-07-30Alembic: transformed chain-of-ifs into switch statementSybren A. Stüvel
By having a switch statement that lists all the values of the enum, it is clear which cases we're not handling, and it also allows for warnings in the future when the enum expands. No functional changes.
2019-07-30Alembic: use `r_` prefix for return variablesSybren A. Stüvel
No functional changes.
2019-07-30Alembic: removal of always-zero parameterSybren A. Stüvel
The `poly_start` parameter was always 0, so adding it to a poly index from Alembic is a no-op. No functional changes.
2019-07-30Fix T65717: Alembic (camera - also mesh) import scale issueSybren A. Stüvel
The w-component of the translation column of the scaled matrix wasn't set to 1.0, which, apart from being incorrect, caused drawing problems. Reviewed By: brecht Differential Revision: https://developer.blender.org/D5290
2019-07-30Fix T67904: GPencil clone brush doesn't copy the right color and layerAntonio Vazquez
When using the clone brush, the first time the brush worked, but the next time no. The reasons were two: 1) The strokes were copied to the active layer, but if there were more than one layer, the stroke must be copied to the original layer. 2) The materials were not assigned properly and the materials were set as the first slot in the list always. Now, the original layer name is used to try to find the same layer in destination. If the layer is missing, the active layer is used. For materials, the bug in the hash lookup is fixed and the material is assigned to the right slot.
2019-07-30Fix T67460: Vertex painting: Sampling color opens empty options window in ↵Sebastian Parborg
viewport The issue was that the redo panel area would call with region type HUD (not WINDOW). Now we make sure that the redo panel always polls the operator in the original area type context. Reviewed By: Brecht Differential Revision: http://developer.blender.org/D5361
2019-07-30Make 3d projpaint iteration lockless.Bastien Montagne
While speedup is hard to detect (highly fluctuent), it seems to be around 5% on average on my 8 threads machine... It also remove usage of a 'global' thread lock, which is always good. Note that I also tried to use proper foreach threaded iterator construct (see D5372), but that proved to be relatively slower (presumably due to the very high dissymmetry between tasks, usually during a paint stroke only a few chunks will require most of the computing effort, overhead of threaded foreach management is then noticeable). This concludes (for now) the work on T51133 Bad performance with texture painting depending on multi-thread settings.
2019-07-30Fix T67370 Normal Tools(Alt +N), copy and paste not workSebastian Parborg
The copy operator requried at least a vert AND a face to be selected. It should only require that a vert OR a face is selected.
2019-07-30BLI_task: Cleanup: rename some structs to make them more generic.Bastien Montagne
TLS and Settings can be used by other types of parallel 'for loops', so removing 'Range' from their names. No functional changes expected here.
2019-07-30BLI_task: tweak default chunk size for `BLI_task_parallel_range()`.Bastien Montagne
Previously we were setting it to 1 (aka no 'chunking'), to follow previous behavior. However, this is far from optimal, especially with CPUs that can have tens of threads nowadays. Now taking an heuristic approach (inspired from the one already existing for `BLI_task_parallel_listbase()`, which tries to guesstimate best chunk sizes based on several factors (amount of threads/parallel tasks, total number of items, ...). Think this is a reasonable base ground, more optimization here would of course be possible. Note that code that was already explicitely settings some value here won't be affected at all by that change.
2019-07-30Fix T66629: Library override - fails when armature and mesh are in separate ↵Bastien Montagne
collections. Some ugly very low-level collection code was using the generic LIB_TAG_DOIT tag... should never happen, that one is for rather high-level code to use, core process shall use own tags.
2019-07-30Fix T67067: Wrong rotation input values when using shortcuts on keyboard ↵Bastien Montagne
like rx720. This allows to type in numinput 720 and indeed get a rotation of 720°, not 0°... This patch basically applies 'big rotations' in steps < 180°, such that compatible rotation works as expected. This implies resetting current rotation to initial one first, otherwise we'd end up applying much more turns than expected when that code is called more than once. It also makes things somewhat slower for big rotations (millions of degrees), Hence we clamp to 1000 turns max. And since that's a case that cannot happen with regular tool/widget-driven rotation, it's only enabled when numinput is used for now. Review task: https://developer.blender.org/D5289
2019-07-30Fix crash clicking in the 3D view on startupCampbell Barton
Setting the 3D view cursor on startup could crash because the viewport hasn't been assigned to the region.
2019-07-30Tracking: Fix wrong usage of draw buffersSergey Sharybin
Curve drawing was attempting to draw reprojection error curve when it was not visible. Worst thing is that the imm was not informed about vertices, so the code was causing an assert in debug mode. Probably, it is also what have caused random crashes after recent changes.
2019-07-30Fix T67274: Graph Editor Normalization broken by Keyframe that uses Easing ↵Sebastian Parborg
or Dynamic interpolation We didn't include and of the newer interpolation types in the normalization function. Besides taking into account these newer types, we now also only evaluate the curves when needed. If the values between the control points won't exceed the control point values, we only use the start/end values for our normalization Reviewed By: Brecht Differential Revision: http://developer.blender.org/D5365
2019-07-30Particle: Fix incorrect access to evaluated meshSergey Sharybin
Mesh can not be requested from original object, and it can not be copied into evaluated modifier because there is no such a thing yet. It can not be done this way now, because getting evaluated object will force it to re-calculate, which kind of defeats idea of this code to preserve un-baked particles.
2019-07-303D View: Move selection API to a Selection engine.mano-wii
This commit moves the API of selecting faces, vertices and edges to a DRW manager engine. Reviewers: campbellbarton, fclem Subscribers: jbakker, brecht Differential Revision: https://developer.blender.org/D5090
2019-07-30Fix T67906: empty menus for hooks if non-hook modifiers are presentPhilipp Oeser
2019-07-30Py node shader wrapper: Add clamping to official min/max values.Bastien Montagne
Taking values from relevant node definition C file... Related to T67889.