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-31Fix T67951: Bone selection is broken on some Intel GPUsmano-wii
The problem is that the `glDrawArraysInstancedBaseInstance` is ignoring the last parameter. The solution is to indicate that `GLEW_ARB_base_instance` is not supported in these cases. Reviewers: fclem, brecht, jbakker Reviewed By: fclem, brecht Differential Revision: https://developer.blender.org/D5383
2019-07-31Fix several undefined-behaviour-sanitizer warningsLukas Stockner
Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D4222
2019-07-31UI: Correct Spacing for Short Unit NamesHarley Acheson
This adds a space between a value and its short unit name except for foot, inch, degree, arcminute, arcsecond Differential Revision: https://developer.blender.org/D5051 Reviewed by Brecht Van Lommel
2019-07-31Add operator for removing unused material slotsLukas Stockner
Reviewers: campbellbarton, brecht Reviewed By: brecht Subscribers: brecht Differential Revision: https://developer.blender.org/D4991
2019-07-31Clarify in FloatProperty generated docs: single precision floats.Howard Trickey
At least one script writer was upset that this was not specified, as it is different from "floating point" in Python. Also, docstring for hard and soft min and max for FloatProperty was wrong, using sys.float_info.min and sys.float_info.max.
2019-07-31Revert "UI: remove checks for other popovers when switching menu"Sebastian Parborg
This reverts commit 77616571292ab1eeb9805797bfdd4525cc306923. This commit broke overlapping popovers. For example in the color management tab it would be impossible to select and of the popover alternatives as it would switch to the menu button under the cursor.
2019-07-31Fix build error after recent cleanupBrecht Van Lommel
2019-07-31Cleanup: typo in parameter name in function declarations.Bastien Montagne
2019-07-31Fix negative booleanSergey Sharybin
Was a nice looking invention, but is obviously wrong. Is likely no function changes, since -false is like -0 which is 0 and which false. And -true is like -<non-zero> which is non-zero as well. Spotted by Sybren, thanks!
2019-07-31Fix T65837: "Zoom Axis" is not working on the node editorSebastian Parborg
We would not take into account the user "Zoom Axis" setting in certain 2D space viewports. In addition to this, the "Scale Zoom" didn't work consistently in these spaces either. Reviewed By: Brecht Differential Revision: http://developer.blender.org/D5132
2019-07-31Fix T63921: Unable to use confirm on release for keyboard shortcutsSebastian Parborg
The first issue was that we were still working around a Xorg bug that has been solved since a very long time: https://bugs.freedesktop.org/show_bug.cgi?id=22515 The second issue was that the global "confirm on release for mouse clicks" was used for keyboard shortcuts as well.
2019-07-31Cleanup: remove unused boost codeBrecht Van Lommel
2019-07-31Fix T67999: calling obj.data.materials.clear() crashes BlenderSybren A. Stüvel
The `BKE_material_clear_id()` didn't call `test_all_objects_materials()`, which caused the object and mesh material slot count to go out of sync.
2019-07-31Refactor access to dependency graphSergey Sharybin
This change ensures that operators which needs access to evaluated data first makes sure there is a dependency graph. Other accesses to the dependency graph made it more explicit about whether they just need a valid dependency graph pointer or whether they expect the graph to be already evaluated. This replaces OPTYPE_USE_EVAL_DATA which is now removed. Some general rules about usage of accessors: - Drawing is expected to happen from a fully evaluated dependency graph. There is now a function to access it, which will in the future control that dependency graph is actually evaluated. This check is not yet done because there are some things to be taken care about first: for example, post-update hooks might leave scene in a state where something is still tagged for update. - All operators which needs to access evaluated state must use CTX_data_ensure_evaluated_depsgraph(). This function replaces OPTYPE_USE_EVAL_DATA. The call is generally to be done in the very beginning of the operator, prior other logic (unless this is some comprehensive operator which might or might not need access to an evaluated state). This call is never to be used from a loop. If some utility function requires evaluated state of dependency graph the graph is to be passed as an explicit argument. This way it is clear that no evaluation happens in a loop or something like this. - All cases which needs to know dependency graph pointer, but which doesn't want to actually evaluate it can use old-style function CTX_data_depsgraph_pointer(), assuming that underlying code will ensure dependency graph is evaluated prior to accessing it. - The new functions are replacing OPTYPE_USE_EVAL_DATA, so now it is explicit and local about where dependency graph is being ensured. This commit also contains some fixes of wrong usage of evaluation functions on original objects. Ideally should be split out, but in reality with all the APIs being renamed is quite tricky. Fixes T67454: Blender crash on rapid undo and select Speculation here is that sometimes undo and selection operators are sometimes handled in the same event loop iteration, which leaves non-evaluated dependency graph. Fixes T67973: Crash on Fix Deforms operator Fixes T67902: Crash when undo a loop cut Reviewers: brecht Reviewed By: brecht Subscribers: lichtwerk Maniphest Tasks: T67454 Differential Revision: https://developer.blender.org/D5343
2019-07-31Depsgraph: Fix wrong check for need-to-be-evaluatedSergey Sharybin
Was missing since 1693a5efe91.
2019-07-31Fix T67883: Time Remapping doesn't workSergey Sharybin
Was caused by 1693a5efe91.
2019-07-31Fix T67597: Texture painting: Texture slots that correspond to nodes inside ↵mano-wii
node_groups don't remain active Unlike `fill_texpaint_slots_recursive`, `rna_Material_active_paint_texture_index_update` did not search for texture nodes that are inside node groups. Reviewers: sergey, psy-fi, zeddb, brecht Subscribers: brecht Differential Revision: https://developer.blender.org/D5338
2019-07-31Fix T67808: Bright/Contrast node wrong for negative contrastPhilipp Oeser
strange nobody noticed since 2012... thx @jenkm for spotting Reviewers: brecht Subscribers: jenkm Maniphest Tasks: T67808 Differential Revision: https://developer.blender.org/D5378
2019-07-31Fix T67573: Missing offset in marker names on current frameAlessio Monti di Sopra
Differential Revision: https://developer.blender.org/D5333
2019-07-31Fix T68001: Rotating vertices on the UV map by a fixed number immediately ↵Bastien Montagne
crashes Blender. Spaghetti Transform code can use same code for different kind of data. The 'stepped rotation' process is actually only useful/doable in a few cases (when we do have some real place to store rotation value, and we are using Eulers).
2019-07-31Cleanup: Remove unused functionSergey Sharybin
2019-07-31Fix T66031: Text Material Change broken.Bastien Montagne
font_to_curve code was not handling properly the case where it has nop object to check for mat indices validity. Check should just not happen then, not reset mat indices of chars to default 0 value.
2019-07-31Fix Visual Studio compatibility in writeffmpeg.cSybren A. Stüvel
This fixes an incompatibility with Visual Studio 2019 introduced in 631d5026c7bb34320c5d9b60afa5bc44b40fc5e4. It is likely caused by using `# ifdef` inside the use of the `ELEM()` macro.
2019-07-31Animation: Remove depsgraph argument from a lot of APISergey Sharybin
Use explicit boolean flag to indicate whether flush to original data is needed or not. Makes it possible to avoid confusion on whether an evaluated or any depsgraph can be passed to the API. Allows to remove depsgraph from bAnimContext as well. Reviewers: brecht Differential Revision: https://developer.blender.org/D5379
2019-07-31Animation: Remove depsgraph argument from direct keyframingSergey Sharybin
It was used to access evaluated object and pose and was done prior to implementation of flushing values back to original data for an active dependency graph. Removing the argument allows to simplify API and solve issues with accessing missing dependency graph on redo.
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-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-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-30DRW manager: select engine: remove redundant callsmano-wii
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 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.