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
2021-04-23Fix T86170: Memory leak clearing the Python instance for COW id dataCampbell Barton
As Python can access COW ID's, ensure it's instance is kept on update. This could happen when the "Use Self" argument was enabled for a driver.
2021-04-23Cleanup: quiet clang-tidy warningCampbell Barton
2021-04-22Fix too big grid plane for Add Object tool on Retina displaysJulian Eisel
The grid plane was drawn too big on retina displays compared to other screens, because the factor was multiplied by the native pixel-size, which is 2 for Retina displays.
2021-04-22Assets: Correct name of own recently added BPY functionsJulian Eisel
Makes the functions (introduced in 557b3d2762a6) follow existing naming conventions for the API. Changes: `bpy.types.ID.mark_asset` to `bpy.types.ID.asset_mark` `bpy.types.ID.clear_asset` to `bpy.types.ID.asset_clear`
2021-04-22Fix T87688: Crash entering valid text into number fieldFalk David
When the user entered a driver expression like `#frame` into a number field, Blender would crash sometime after. This is because e1a9ba94c599 did not handle this case properly and ignored the fact that the user can enter text into the field. The fix makes sure that we only cancel if the value is a *number* equal to the previous value in the field. Note that this could also be handled by `ui_but_string_set` which would be a bit nicer potentially. However, I was unable to find a clean way of passing `data->startvalue` into that function. `uiHandleButtonData` is only known locally inside `interface_handlers.c`. Reviewed By: Severin Maniphest Tasks: T87688 Differential Revision: https://developer.blender.org/D11049
2021-04-22Geometry Nodes: Add initializer for attribute creationHans Goudey
Previously we always had to set attribute values after creating the attribute. This patch adds an initializer argument to `attribute_try_create` which can fill it in a few ways, which are explained in code comments. This fixes T87597. Differential Revision: https://developer.blender.org/D11045
2021-04-22Fix T87701: debug assert generating scene preview renderBrecht Van Lommel
2021-04-22Fix missing includeGermano Cavalcante
2021-04-22Geometry Nodes: Get attribute domain and type without allocationHans Goudey
Because we use virtual classes (and for other reasons), we had to do a small allocation when simply retrieving the data type and domain of an existing attribute. This happened quite a lot actually-- to determine these values for result attributes. This patch adds a simple function to retrieve this meta data without building the virtual array. This should lower the overhead of every attribute node, though the difference probably won't be noticible unless a tree has very many nodes. Differential Revision: https://developer.blender.org/D11047
2021-04-22Fix missing includeGermano Cavalcante
2021-04-22Merge branch 'blender-v2.93-release'Germano Cavalcante
2021-04-22Fix T87615: No snapping to objects instanced by Geometry nodesGermano Cavalcante
The code of the snapping system to interact the objects in the scene only considers instances what comes from "DUPLI" objects. This commit adds instances coming from Geometry nodes. Differential Revision: https://developer.blender.org/D11020
2021-04-22Merge branch 'blender-v2.93-release'Richard Antalik
2021-04-22Fix T87090: VSE scrubbing locks up blenderRichard Antalik
Speed effect caused, that some raw frames are re-used for multiple final frames. When cached final frame is freed due to memory being full, it tried to free also lower level cached frames that were used during compositing. Some lower level cached frames were already freed by different final frame and `BLI_ghash_remove()` failed. Check if key still exists in hash or if linked keys were overwritten before removing them. Reviewed By: sergey Differential Revision: https://developer.blender.org/D10909
2021-04-22Merge branch 'blender-v2.93-release'Jacques Lucke
2021-04-22Fix: geometry nodes logs incorrect preview dataJacques Lucke
Under some circumstances, modifiers are evaluated more than once. One time to compute the actual output geometry and another time with `MOD_APPLY_ORCO`. This design probably has to be revisited at some point in the context of geometry nodes. However, that would be much more involved than a bug fix. The issue was that during the second evaluation, the node tree is evaluated based on a slightly different input geometry. The data generated during the second evaluation overwrote the cached data from the first evaluation, resulting in incorrect data that is shown in the spreadsheet. The fix for now is to simply not log any data in the second evaluation.
2021-04-22Cleanup: doversion for 3.0 is using FileDataDalai Felinto
2021-04-22Animation: add "LocRotScaleCProp" keying setSybren A. Stüvel
Add a keying set that includes location, rotation, scale, and custom properties. The keying set is intentionally not based on the "Whole Character" keying set. Instead, it is generic enough to be used in both object and pose animation, making it possible to quickly switch between animating characters and props without switching keying sets. This is, according to @rikkert, what the Blender Studio animators need 99.9% of the time.
2021-04-22Merge branch 'blender-v2.93-release'Campbell Barton
2021-04-22Fix T85051: Add bisect distance as a parameter to the mirror modifierFalk David
The `bisect_distance` in the mirror modifier was hard-coded to `0.001`. This would result in some unexpected behavior like vertices close to the mirror plane being deleted or merged. The fix now adds a parameter to the mirror modifier to expose the bisect distance to the user. The default is set to the previous hard-coded value to not "change" previous files. Ref D10201
2021-04-22Merge branch 'blender-v2.93-release'Richard Antalik
2021-04-22VSE: Fix movies are reloaded after invalidationRichard Antalik
When cache is strip is invalidated, movie file was reloaded even if it isn't necessary. This caused significant performance issues when strip is being dragged under playhead. This was caused by calling `SEQ_relations_sequence_free_anim()` and it was introduced as fix for T36124. When it is necessary to reload file because another API holds reference to ImBuf, do this explicitly besides cache invalidation. In `rna_ColorManagedColorspaceSettings_reload_update()` this was already done, so no change is needed there. Reviewed By: sergey Differential Revision: https://developer.blender.org/D11024
2021-04-22Fix T87337: Text strip draws white outlineRichard Antalik
Math for drawing font over byte buffer was incorrect. Effect can be seen when target buffer is fully black and transparent - this results in font color being effectively premultiplied, which causes problems when image is composited further. Use `blend_color_mix_byte()` and `blend_color_mix_float()` for blending. Reviewed By: sergey Differential Revision: https://developer.blender.org/D11035
2021-04-22Fix T86682: Scene strip DOF not evaluated correctlyRichard Antalik
Camera object used for rendering reffered to original not evaluated data. Use `DEG_get_evaluated_object()` to get evaluated camera. Reviewed By: sergey Differential Revision: https://developer.blender.org/D11039
2021-04-22Fix errors in Buffer.dimensions `setter`Campbell Barton
- Error accessing the length from a sequence. - Error comparing a boolean to -1. Issues introduced in 19360c2c1cf50c80b9720137b88db2c2f3626ddc
2021-04-21Merge branch 'blender-v2.93-release'Germano Cavalcante
2021-04-21Fix wrong flag for 'GPUFrameBuffer.viewport_get'Germano Cavalcante
`GPUFrameBuffer.viewport_get` has no args.
2021-04-21Python GPU Buffer: Add a 'setter' to Buffer.dimensionsGermano Cavalcante
The attribute `Buffer.dimensions` does not need to be readonly.
2021-04-21Geometry Nodes: add method to get attribute by name and typeJacques Lucke
This is needed by the upcoming Attribute Transfer node. It changes its behavior based on what domain the attribute is on.
2021-04-21Geometry Nodes: extract mesh surface sampling functions to separate fileJacques Lucke
2021-04-21Functions: add slice method for generic spansJacques Lucke
2021-04-21Geometry Nodes: add utility to convert CPPType to static typeJacques Lucke
2021-04-21Merge branch 'blender-v2.93-release'Jacques Lucke
2021-04-21Fix T87659: crash when creating reroute loop in geometry nodesJacques Lucke
This was a regression introduced in rB0ff3f96a1b0193d69dae5ca69e7c93d6cdf34558.
2021-04-21UI: Use proper close file dialog for "Restore Last Session"Julian Eisel
Was showing a simple confirm dialog, even if the file didn't contain unsaved changes. The confirm dialog would also show up when choosing "Restore Last Session" from the splash screen right after startup, which is weird. Instead show the proper file closing dialog that allows saving, but only if there are actually unsaved changes.
2021-04-21Cleanup: Deduplicate file closing dialog logicJulian Eisel
Was doing almost the same thing in two places, plus I need the same for a third case. So better have a helper function for it.
2021-04-21Cleanup: Create/use types for generic WM callbacksJulian Eisel
Makes it less of a hassle to pass these callbacks around as function arguments, and deduplicates their signature when doing so.
2021-04-21Merge branch 'blender-v2.93-release'Philipp Oeser
2021-04-21Fix T87677: Add primitive tools produce wrong sized objects after changing ↵Philipp Oeser
values in 'Adjust Last Operation' Always use the defaults here (radius, depth etc), since desired bounds have been set interactively, it does not make sense to use a different value from a previous command. The Cube tool has already seen a fix for this in rB26e5718e29a7, but Cone/UVSphere/Cylinder/IcoSphere havent. Maniphest Tasks: T87677 Differential Revision: https://developer.blender.org/D11038
2021-04-21Fix T86968: Last UV factor in cyclic strokesFalk David
The UV factor of the last point of a cyclic stroke was using the factor of the first point leading to unwanted scaling artifacts. The fix sets the uv factor of the last point to the currect value (last UV factor + length between last and first point). Reviewed By: antoniov, fclem Maniphest Tasks: T86968 Differential Revision: https://developer.blender.org/D10850
2021-04-21Merge branch 'blender-v2.93-release'Philipp Oeser
2021-04-21Fix T87640: Grease Pencil layer visibility/locking not synchronized from ↵Philipp Oeser
Dope Sheet to Properties Properties Editor is a bit more picky (compared to the Outliner for example) when it comes to listening to grease pencil notifiers -- it requires the action to be set. So when adding the notifier in the dopesheet from the channels (done in `achannel_setting_flush_widget_cb`), now add the `NA_EDITED` action. Maniphest Tasks: T87640 Differential Revision: https://developer.blender.org/D11025
2021-04-21Merge branch 'blender-v2.93-release'Philipp Oeser
2021-04-21Curve modifiers: Disable 'Apply on Spline' option if not availablePhilipp Oeser
Some curve modifiers (namely Hook, SoftBody and MeshDeform) can only work on pre-tesselated spline points. Before the modifier UI refactor in rB9b099c86123f, users would get the 'Apply on Spline' option, but disabled and with a tip explaining why this cant be changed. After rB9b099c86123f though, this button was always enabled [but disfunctional] leaving the user without an explanation why this has no effect. Now restore this functionality since it is quite important information. Additionally, this button now appears to be ON in these cases which makes more sense from the user perspective (so it does not represent the actual setting on the modifier -- this would internally be switched ON in the modifier calculation anyways though, see 'curve_get_tessellate_point') Differential Revision: https://developer.blender.org/D11029
2021-04-21Merge branch 'blender-v2.93-release'Campbell Barton
2021-04-21Merge branch 'blender-v2.93-release'Campbell Barton
2021-04-21Fix T87562: Keymap preferences from 2.92x ignoredCampbell Barton
Renaming presets in 01d49d1542cee0da2a7629443f9534bc5cec5a55 caused them to be treated as separate key-maps.
2021-04-21BLI_string: add a utility to replace strings using a tableCampbell Barton
Useful to simplify versioning code when identifiers need updating in multiple places.
2021-04-20Correction to previous commit: Avoid unnecessary notifierJulian Eisel
Not a big deal, but nice to avoid notifiers when no change was done.
2021-04-20Assets: Add BPY function to mark and clear assetsJulian Eisel
Adds `mark_asset()` and `clear_asset()` to ID data-blocks, e.g. `bpy.context.active_object.mark_asset()`. They essentially do the same as the mark and clear asset operators. Scripts are generally discouraged from using operators where possible, but we need to provide API functions to use instead. In this case it means scripts don't have to override context to pass an ID to the operator.