Blender Git Commits

Blender Git "master" branch commits.

Page: 367 / 5574

March 2, 2021, 11:23 (GMT)
FFmpeg: Improve scrubbing performance

Applying negative offset to seek position before scanning doesnn't have
any effect. This change results in 1.5x faster seeking (random frame,
average value) in sample file with 30 frame GOP length.

If I am not mistaken, B frames can have pts that can be less than
pts of I frame that must be decoded. Even in this case though, B frame
packet will be stored after that I frame.

In addition, preseek value is de facto hardcoded so seeking would fail
if it could. This can be hard to spot though.

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D10529
March 2, 2021, 11:23 (GMT)
Fix T85970: Incorrect scaling of meta strips

This is same issue as fixed by d85789255320, but I forgot to check meta
strips. Meta strip output is always in render size.

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D10560
March 2, 2021, 11:08 (GMT)
Geometry Nodes: show "Show Texture in texture tab" button

This enables the quick access button [to show the relevant Texture in
the Properties Editor] for textures used in geometry nodes.

This goes in line to what we do for other textures:
- modifier textures have this button
- particle textures have this button
- brush textures will soon have it, too (see D9813)

When outside of the Properties Editor, the button will always show (if a
texture is actually assigned), but will be inactive if no suiting
Properties Editor to show the texture in can be found.

Note this also changes the behavior to not show the button if _no_
texture is assigned (as in: we are still showing the "New" button).
Previously it was always there (e.g. for modifier textures), even if it
would take us to an empty texture tab. (Sure, we could add a texture
there then, but imho it makes more sense to just start showing it once a
texture is already there)

For this to work with geometry nodes, the following chages were done:
- implement foreachTexLink for geonode modifiers
- new buttons_texture_user_node_property_add() that stores prop as well
as node
- also use NODE_ACTIVE_TEXTURE flag in geometry nodetrees

notes:
- this still uses the first suiting (as in: pinning does not interfere)
Properties Editor it finds, this should (maybe?) find the _closest_
Property Editor instead (see related feedback in D9813).
- this will already show the button for brush textures as well
(disabled), but there is another mandatory change in an upcomming commit
to make it work there as well (see D9813)

ref. T85278

Maniphest Tasks: T85278

Differential Revision: https://developer.blender.org/D10293
March 2, 2021, 10:54 (GMT)
Cleanup: RNA: Remove useless setter of PoseBone's custom shape.

If the property is properly tagged, RNA knows how to deal with ID
usercount by itself, no need of a custom setter callback for that.
March 2, 2021, 10:20 (GMT)
Cryptomatte: Read metadata from multilayer OpenEXR.

Currently the compositor reads cryptomatte meta-data from the render
result. When loading a multilayer open exr file the meta-data was ignored.
This patch will also load the cryptomatte meta-data from multilayer open
exr files.

This enabled workflows where the rendering and compositing are done in
separate scenes or for future changes where the cryptomatte node will
use the meta-data for name matching and color picking.

Reviewed By: Sergey Sharybin

Differential Revision: https://developer.blender.org/D10384
March 2, 2021, 09:14 (GMT)
Cryptomatte: Session from Existing Render Result.

Utility to construct a cryptomatte session from a render result or
openexr file. This will allow D3959 to be more aware of the context
it is working on and would also support external render engines in
the cryptomatte color picker.
March 2, 2021, 07:40 (GMT)
Fix click-drag regression in fix for T86116

1638af109e46522a1a24645289016922bb9ca977 &
bfc70a6a958b9c35bde765ea8a02e8b1fd36db8b
caused a regression with click-drag (not tweak which has it's own logic).

Restore some changes from these commits with added comments.

Minor changes from previous functionality from
39919e35326c732141bfd2d740b19000b6bc1d51.

- `prevval` & `prevtype` are now set for all kinds of new events
in the queue previously this was not done for some kinds of events
(mouse wheel, ndof - for example).

- Set `prevval` & `prevtype` for other windows for mouse buttons.
March 2, 2021, 06:02 (GMT)
WM: log errors when wmWindow.eventstate values are invalid

Ensure they're working as documented (only for debug builds).
March 2, 2021, 06:02 (GMT)
WM: window.event_simulate now sets previous values properly

Match wm_event_add_ghostevent behavior for setting previous values.
March 2, 2021, 06:02 (GMT)
Docs: notes on wmEvent previous state struct member use
March 2, 2021, 06:02 (GMT)
WM: use wmEvent.is_repeat instead of previous event checks

This check was added before is_repeat was supported, use this variable
instead since it's more a more reliable way of detecting held keys.

Also remove outdated comment.
March 2, 2021, 06:02 (GMT)
Cleanup: remove Python 2.x support from complete_calltip
Revision 8f2c3c6 by Hans Goudey
March 1, 2021, 21:45 (GMT)
Fix build error after last commit
Revision 3084f6a by Hans Goudey
March 1, 2021, 21:43 (GMT)
Cleanup: Rename node UI storage function

"ensure" makes more sense in this case because the function actually
adds an item to the map if one doesn't exist yet.
March 1, 2021, 20:38 (GMT)
GPU Python: Implement gpu.texture.from_image

It can be useful to replace `image.bindcode` and `image.gl_load`.

Used for example in https://docs.blender.org/api/current/gpu.html#d-image

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D10458
March 1, 2021, 18:43 (GMT)
CMake: reduce Neon related output on Intel platforms

* Only try to find sse2neon if Neon detected
* Only run Neon support test once
March 1, 2021, 17:44 (GMT)
Cleanup: rename some animation-related functions

Rename:
- `BKE_animsys_store_rna_setting` ? `BKE_animsys_rna_path_resolve`
- `BKE_animsys_read_rna_setting` ? `BKE_animsys_read_from_rna_path`
- `BKE_animsys_write_rna_setting` ? `BKE_animsys_write_to_rna_path`

The concept of "RNA setting" is unclear; the new names reflect better
what the functions actually do.

No functional changes.
March 1, 2021, 17:25 (GMT)
Fix T85981: Undo on linked rig with overrides loses custom shapes.

While generally speaking bone shapes objects should not be overridden,
it can happens in some cases, and should be properly supported then.
March 1, 2021, 17:18 (GMT)
Cleanup: refactor `BKE_animsys_store_rna_setting()`

Lower the cognitive complexity of `BKE_animsys_store_rna_setting()` by
flipping conditions and using early returns.

No functional changes.
March 1, 2021, 16:37 (GMT)
Cleanup: remove superfluous `animsys_evaluate_action_ex()` call

Remove `animsys_evaluate_action()` and rename
`animsys_evaluate_action_ex()` to it. The only function of the former
was to call the latter, with the exact same parameters.

No functional changes.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021