Blender Git Commits

Blender Git "master" branch commits.

Page: 396 / 5574

February 9, 2021, 07:12 (GMT)
Fix T81206: Do not limit gl texture size in image editor

This patch will show textures in the image editor with the maximum
available resolution determined by the GPU Hardware/Driver.
Currently the size is limited by the user preference texture size limit.

An image user can set the `IMA_SHOW_MAX_RESOLUTION` flag to request
gpu textures in the max supported resolution. When this flag isn't
set the gpu texture is limited by the user preference setting.

When the gl resolution limit is disabled the GPU texture is always
created for the max supported resolution.

Reviewed By: Cl�ment Foucault

Maniphest Tasks: T81206

Differential Revision: https://developer.blender.org/D9160
February 9, 2021, 07:11 (GMT)
Fix versioning code of previous commit
February 8, 2021, 23:42 (GMT)
Cleanup: spelling
February 8, 2021, 22:58 (GMT)
Cleanup: move eIconSizes, ID_Type enums into own file

This avoids adding DNA_ID.h into other headers, recently changed in
cfa48c84d06ca8197f86b6d3ceef8a2c7c311a82

Note that other enums could be moved too, this is a smaller change
to avoid indirectly including DNA_ID.h in many places.
Revision cfa48c8 by Hans Goudey
February 8, 2021, 21:09 (GMT)
Cleanup: Register node property layout callbacks in files

This commit moves the property layout callbacks for node types to their
implementation files from `drawnode.c`. This was proposed a while ago in
T75724.

**Benefits**
- Fewer files need to be changed when adding a new node.
- Makes it possible to reuse functions from the node's implementation
in the layout code.
- Except for RNA, all of the node "inputs" are in the same place.
- Code gets shorter overall, avoids the large switch statements.

**Downsides**
- Requires including two UI headers.
- Requires adding an editors dependency to the nodes folder.

This commit only changes function nodes and geometry nodes, more can be
moved later.

Differential Revision: https://developer.blender.org/D10352
February 8, 2021, 20:27 (GMT)
Docs: Remove CLI arguments removed in recent commit

This commit follows up on rBbc94036a76b63254181788ce5814fb946f52a287
and removes the arguments from the CLI args docs.
February 8, 2021, 16:19 (GMT)
Fix for T84038: Improved Report Warnings

Improved contrast for Status Bar report warning messages.

Differential Revision: https://developer.blender.org/D10242

Reviewed by Hans Goudey
Revision 21a2b97 by Omar Emara
February 8, 2021, 15:26 (GMT)
Cleanup: Remove using-directive from freestyle headers

The header files in freestyle utilize the using-directive at the global
file scope. This is a bad practice as it pollutes the global name space
causing possible ambiguous reference compilation errors. In particular,
the DNA files that are included by freestyle will cause those ambiguous
reference errors when the developers adds a DNA member with a type name
that also exist in the Freestyle name space, such as Curve and possibly
others.

This patch does the minimal work needed to resolve that by moving the
using-directives from the headers into the corresponding translation
units.

Reviewed By: Brecht

Differential Revision: https://developer.blender.org/D10351
Revision 048135e by Julian Eisel
February 8, 2021, 15:14 (GMT)
Fix T85448: File Browser sidebar collapses when selecting a file

The logic to ensure a valid region state was too aggressive in setting the
region hiding. It would just always update it based on the operator's
`hide_props_region` option, not only when file browser was newly opened.
It's more selective now.
February 8, 2021, 14:59 (GMT)
Fix (studio-reported) crash in readfile code.

Essentially, `lib_link_all` would perform some post-processing over data
in given `bmain` that **may** fail when not all data from all libraries
has been properly loaded yet.

This happens when `lib_link_all` is called from `read_libraries`, where
the bmains are split by libraries.

Now those post-processing is put into its own utils function, which
asserts that it is only called on a merged bmain.

Bonus point, this will avoid re-runing those not-so-cheap operations
more than once on the same data.

Reproducible in r1442 of Sprite repository when opening
`pro/animation_test/rex/performance/rex_crowdcamping/rex_crowdcamping.lighting.blend`

NOTE: Not so sure why we have to call `lib_link_all` several times (once
for each library, and then once on the whole merged bmain, including
local IDs then). So that it can get called for libs while we still have
that specific .blend file handle around?
In any case, the overhead here is minimal since we do ensure a data-block is
never lib-linked more than once, so this is not a serious concern right now.

Differential Revision: https://developer.blender.org/D10307
February 8, 2021, 14:44 (GMT)
Fix T81206: Do not limit gl texture size in image editor

This patch will show textures in the image editor with the maximum
available resolution determined by the GPU Hardware/Driver.
Currently the size is limited by the user preference texture size limit.

An image user can set the `IMA_SHOW_MAX_RESOLUTION` flag to request
gpu textures in the max supported resolution. When this flag isn't
set the gpu texture is limited by the user preference setting.

When the gl resolution limit is disabled the GPU texture is always
created for the max supported resolution.

Reviewed By: Cl�ment Foucault

Maniphest Tasks: T81206

Differential Revision: https://developer.blender.org/D9160
February 8, 2021, 13:44 (GMT)
install_deps: Updated OpenImageDenoise to 1.3.0
February 8, 2021, 13:36 (GMT)
Fix compilation error after recent refactor

Thanks Germano for review!
February 8, 2021, 13:35 (GMT)
install_deps: Updare OpenVDB to 8.0.1.
February 8, 2021, 13:01 (GMT)
Transform: Refactor texture space 'transform_convert' data

The changes are:
- Split conversion of the texture space data to its own file.
- Skip adding keyframes with AutoKeyframes.
- Skip recalculation of the trasform dependencies between objects.
- Skip `special_aftertrans_update_...`.

No real user functional changes
February 8, 2021, 12:54 (GMT)
Cleanup: Rearrange and name the enums and flags used in the transform code

Simple change that shows all the enums used in the transform code and helps
to better understand the role of the members of the struct TransInfo.

It also allows the IDE to show the name of the value represented by the
member instead of a number that needs to be consulted.

Differential Revision: https://developer.blender.org/D10312
February 8, 2021, 12:54 (GMT)
Transform: Grid snap target refactor

The code takes many turns to get a suitable "target" for the snap to grid.

Perhaps there were other reasons awaited for `transformCenter_from_type`
and `TransCenterData center_cache[5]`.

But since nothing is defined, it is better to simplify the code.

No user functional changes
February 8, 2021, 12:54 (GMT)
Cleanup: Unify, move and rename transform flags

Flags unified:
T_CURSOR -> CTX_CURSOR
T_TEXTURE -> CTX_TEXTURE

Flags moved:
T_CAMERA -> CTX_CAMERA
T_POSE -> CTX_POSE_BONE
T_OBJECT -> CTX_OBJECT
T_TEXTURE -> CTX_TEXTURE_SPACE

Flag renamed:
CTX_EDGE -> CTX_EDGE_DATA
February 8, 2021, 12:36 (GMT)
Merge branch 'blender-v2.92-release'
Revision bb0b250 by Sam Miller / Jacques Lucke
February 8, 2021, 12:33 (GMT)
Fix T85368: map range node clamps incorrectly in geometry nodes

When clamp is enabled, it should clamp between the output min and max
and not between 0 and 1.

Differential Revision: https://developer.blender.org/D10324
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021