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-08-02Fix ignored window clipping test in foreach edge functionCampbell Barton
2019-08-02Cleanup: clang-format, also typo fix.Campbell Barton
2019-08-02Fix text editor undo sync when mixed with other undo systemsCampbell Barton
Undo rewrite broke test_undo.text_editor_edit_mode_mix. Relatively harmless since it's only out of sync by one action.
2019-08-02Cleanup: GPencil dissolve operator now uses GP_EDITABLE_STROKES_BEGIN macroAntonio Vazquez
This reduces the number of loops
2019-08-02GPencil: Make GP_EDITABLE_STROKES_BEGIN macro safe when stroke is removedAntonio Vazquez
If the macro was used in a loop where the stroke was removed, the macro failed.
2019-08-02BrightContrast not working correctly with negative contrastPhilipp Oeser
followup to rB8dd95abb2ff9 (which fixed this for the Compositor node), turns out this was also wrong for the VSE modifier and in vertex color operator. - also adjust min/max for VSE modifier - also guard against division by zero Reviewers: brecht Maniphest Tasks: T67808 Differential Revision: https://developer.blender.org/D5398
2019-08-02Fix unreported: length measure displayed on the "Sequence Slide" operator panelmano-wii
2019-08-02Fix T63570: Proportional editing resets scaling along Y and Z axis on mouse ↵mano-wii
wheel `applyResize(...)` considers that `t->values` always represents a `ratio`. But this is only `true` with the `MOUSEMOVE` event. The solution proposed is to never change `t->values`. The result of the final transformation is now written to `t->values_final`. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D5212
2019-08-02Cleanup: doxy sectionsCampbell Barton
2019-08-02Cleanup: spellingCampbell Barton
2019-08-02Cleanup: unused variableCampbell Barton
2019-08-02DRW: Select Engine: Add a utility to detect `select_node`mano-wii
2019-08-02Edit Mesh Select: Remove redundant and deprecated `FAKE_SELECT_MODE_...`mano-wii
2019-08-02Object Mode: add back non '_ex' versions of mode-switching functionsCampbell Barton
While these aren't currently used, its strange to have extended versions of a function without the non-extended versions it also avoids callers needing to add them back if they need - or duplicating the same boiler plate when calling the '_ex' versions. Reverts 11da3b132aff1, 11da3b132aff1, adds depsgraph argument so the caller is responsible for the evaluation state.
2019-08-02Cleanup: quiet maybe-unused warningsCampbell Barton
While harmless, use flow control that always sets the variable.
2019-08-02Cleanup: quiet maybe-unused warningCampbell Barton
While harmless, use flow control that always sets the variable.
2019-08-01VSE: Use sequencer boundbox for view_all operatorRichard Antalik
Fix T67279 Fix T59954 Reviewed By: brecht Differential Revision: https://developer.blender.org/D5368
2019-08-01Fix T66028: Move sequence, movieclip and text editor progressbars to status barRichard Antalik
Reviewed By: brecht Differential Revision: https://developer.blender.org/D5219
2019-08-01Text: toggle comment operatorCampbell Barton
2019-08-01Cleanup: use doxy sections for text operatorsCampbell Barton
2019-08-01Fix T68036: VSE: 'Remove Gaps' causes audio to go out of syncPhilipp Oeser
Reviewers: sergey Maniphest Tasks: T68036 Differential Revision: https://developer.blender.org/D5391
2019-08-01Cleanup: misc spelling fixes in variable names & definesCampbell Barton
T68045 by @luzpaz
2019-08-01Cleanup: misc spelling fixesCampbell Barton
T68035 by @luzpaz
2019-08-01Cleanup: use braces, unused variable, unused enumCampbell Barton
2019-07-31Fix several undefined-behaviour-sanitizer warningsLukas Stockner
Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D4222
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-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 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-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-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-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 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-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-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-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-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-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