Blender Git Commits

Blender Git "master" branch commits.

Page: 378 / 5574

February 21, 2021, 00:33 (GMT)
Cleanup: EEVEE: change cameraVec macro to cameraVec(P)

This makes is clearer and avoid having to setup worldPosition if
shader is not a material shader.
February 21, 2021, 00:33 (GMT)
Cleanup: EEVEE: Use P for world position instead of W

This removes the last places where this was not the case.

We follow cycles convention of P being for Postion.
February 21, 2021, 00:33 (GMT)
Cleanup: EEVEE: Use P and vP instead of worldPosition and viewPosition

... for local variables.
February 21, 2021, 00:33 (GMT)
Cleanup: EEVEE: Rename aperture to cone angle when it make sense

Aperture for a cone is 2 times the cone angle.
February 21, 2021, 00:33 (GMT)
Cleanup: EEVEE: Rename variable named sample because ...

.. it's a reserved keyword on GL > 4.0.
February 21, 2021, 00:33 (GMT)
Fix T85603 EEVEE: Baking Indirect lighting crashes Blender

Was caused by non initialized render_timesteps.
February 20, 2021, 21:05 (GMT)
BLI: cleanup StringRef and Span and improve parameter validation

Previously, methods like `Span.drop_front` would crash when more
elements would be dropped than are available. While this is most
efficient, it is not very practical in some use cases. Also other languages
silently clamp the index, so one can easily write wrong code accidentally.

Now, `Span.drop_front` and similar methods will only crash when n
is negative. Too large values will be clamped down to their maximum
possible value. While this is slightly less efficient, I did not have a case
where this actually mattered yet. If it does matter in the future, we can
add a separate `*_unchecked` method.

This should not change the behavior of existing code.
February 20, 2021, 18:29 (GMT)
GPencil: Remove old Interpolate menu option

This option was before move this action as a tool.
February 20, 2021, 17:54 (GMT)
UI: Correct the text alignment of the RGB/HSV/Hex toggle in the color picker

Expanded enum items like this usually have centered text, but there are
limitations in the popup code that break this here. Add a workaround for this
limitation.

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

Reviewed by: Julian Eisel
Revision f2c0bbe by Omar Emara
February 20, 2021, 16:05 (GMT)
Python: Add to_curve method to the object API

This patch adds a to_curve method to the Object ID. This method is
analogous to the to_mesh method. The method can operate on curve and
text objects. For text objects, the text is converted into a 3D Curve ID
and that curve is returned. For curve objects, if apply_modifiers is
true, the spline deform modifiers will be applied and a Curve ID with
the result will be returned, otherwise a copy of the curve will be
returned.

The goal of this addition is to allow the developer to access the splines
of text objects and to get the result of modifier applications which was
otherwise not possible.

Reviewed By: Brecht

Differential Revision: https://developer.blender.org/D10354
February 20, 2021, 10:33 (GMT)
Geometry Nodes: expose float2 attribute in rna

This also fixes the issue reported in T85651.

Differential Revision: https://developer.blender.org/D10477
February 20, 2021, 09:16 (GMT)
Cleanup: Split grease pencil selection index functions

This makes the code more readable.
February 20, 2021, 05:19 (GMT)
PyAPI: use a new type for storing the deferred result of bpy.props

This is needed to support Python 3.10's Postponed annotation evaluation.

It also simplifies type checking.
February 20, 2021, 04:38 (GMT)
Cleanup: spelling
February 20, 2021, 04:35 (GMT)
Cleanup: doxygen sections
February 20, 2021, 04:34 (GMT)
Cleanup: remove duplicate enum
February 20, 2021, 04:34 (GMT)
Cleanup: reference near duplicate enum definitions
Revision 2d5b89b by Hans Goudey
February 19, 2021, 22:29 (GMT)
Cleanup: Disentangle outliner active status "get" and "set"

Previously the same functions were used to both set and get the active
state for outliner tree elements. This has quite a few problems.
- It's hard to tell when data is changed or simply read
- It prevents using `const`
- The code is full of if statements, making it longer and less readable.

This commit replaces the `tree_element_type_active` and
`tree_element_active` functions with `_get` and `_set` variants. One
has const arguments and returns the active state, the other deals only
with setting the state. While this refactor results in slightly more
lines of code, the result is much better in my opinion.

This commit also removes unused variables from arguments of the affected
functions.

Differential Revision: https://developer.blender.org/D10232
February 19, 2021, 22:03 (GMT)
Geometry Nodes: Add string input node

This commit adds a simple string input node, intended for use in the
attribute workflow to make using the same attribute name in multiple
places easier. The node is function node similar to the existing vector
input node.

Ref T84971

Differential Revision: https://developer.blender.org/D10316
Revision ee1c674 by Hans Goudey
February 19, 2021, 20:39 (GMT)
UI: Use property split in geometry node properties

This makes the nodes look more consistent with the rest of the UI
by using the same split with right aligned labels as the property editor
and elsewhere. Additionally, for consistency, the "Type" part of some
dropdowns is removed. It already wasn't displayed everywhere, and
it gets redundant quite quickly.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021