Blender Git Commit Log

All Blender Git commits.

Page: 45 / 8462

December 6, 2021, 23:52 (GMT)
Shader Nodes: Migrate shader category to new node socket declaration API

No functional changes, tests passed and I double checked the nodes by hand.
December 6, 2021, 23:52 (GMT)
Cleanup: clang format
December 6, 2021, 22:27 (GMT)
Fix: Remove line from common invoke

The line that sets the factor_prop in graph_slider_ops.c
has been left in the common invoke function by accident.

Reviewed by: Sybren A. St�vel
Differential Revision: https://developer.blender.org/D13477
Ref: D13477
December 6, 2021, 22:19 (GMT)
Cleanup: renames in graph_slider_ops

rename percentage_prop to factor_prop
rename remove_ratio to factor
remove "graphkeys" prefix from functions

Reviewed by: Sybren A. St�vel
Differential Revision: https://developer.blender.org/D13476
Ref: D13476
Revision 78ae587 by Hans Goudey (master)
December 6, 2021, 22:12 (GMT)
Cleanup: Use C++ types for multi input socket sorting

The algorithm used is still quite inefficient, but at least the code
is easier to read and a little bit simpler now.
Revision aa23e87 by Hans Goudey (master)
December 6, 2021, 21:50 (GMT)
Cleanup: Remove unused includes
Revision 0177997 by Hans Goudey (master)
December 6, 2021, 21:35 (GMT)
Cleanup: Remove unused node flag
Revision b91ac86 by Hans Goudey (master)
December 6, 2021, 21:04 (GMT)
Cleanup: Remove unnecessary generic includes from headers
Revision 5705db5 by Hans Goudey (master)
December 6, 2021, 20:47 (GMT)
Fix: Compile error in field input

Instead of essentially hashing a bool, just use a ternary operator.

Differential Revision: https://developer.blender.org/D13494
Revision 0ed2545 by Ankit Meel (master)
December 6, 2021, 20:08 (GMT)
macOS: Fix build error in hash functions

Remove unneeded recent static_cast attempt.

Reviewed By: HooglyBoogly
Differential Revision: https://developer.blender.org/D13492
December 6, 2021, 19:47 (GMT)
Shader Nodes: Split each node into own file

This improves both code finding, for example "color ramp" now has its own file.
And now each node has its own namespace so function names can be simplified
similar to rBfab39440e94

This commit also makes all file names use snake case instead of camel case.

Reviewed By: HooglyBoogly

Differential Revision: https://developer.blender.org/D13482
Revision c3c69fe by Hans Goudey (master)
December 6, 2021, 18:49 (GMT)
Cleanup: Fix warnings about copied Map loop variables

The `Map::items()` iterator does not return references.
Revision 86d520f by Hans Goudey (master)
December 6, 2021, 18:47 (GMT)
Fix: Attempt to fix build error on macOS
December 6, 2021, 18:40 (GMT)
Nodes: Add function to set compact socket flag for vectors

This flag is currently only used for vector sockets
so the function is limited to the vector builder.

The flag is only used by two shader nodes at the moment
and this is needed to port them over to the new socket declaration API.

Reviewed By: JacquesLucke

Differential Revision: https://developer.blender.org/D13490
December 6, 2021, 18:13 (GMT)
Geometry Nodes: reduce code duplication with new GeometyrFieldInput

Most of our field inputs are currently specific to geometry. This patch introduces
a new `GeometryFieldInput` that reduces the overhead of adding new geometry
field input.

Differential Revision: https://developer.blender.org/D13489
December 6, 2021, 17:58 (GMT)
Geometry Nodes: 4 Field Inputs for Mesh Topology Data

Creates 4 new nodes which provide topology information
for the mesh. Values are interpolated from the primary
domain in each case using basic attribute interpolation.

Vertex Neighbors
- Vertex Count
- Face Count
Face Neighbors
- Vertex Count
- Neighboring Face Count
Edge Vertices
- Vertex Index 1
- Vertex Index 2
- Position 1
- Position 2
Face Area
- Face Area

Differential Revision: https://developer.blender.org/D13343
December 6, 2021, 17:55 (GMT)
USD IO: material conversion improvements.

Updated the USD Preview Surface texture node
import code to handle UDIM tiles that don't
start a 1001. Performed miscellaneous cleanup
to make code more robust.

Fixed logic for the MDL material fallback behavior
to import the USD Preview Surface shaders only if
the material has no MDL shaders. I.e., it will not
load preview surface as a fallback if an MDL exists
but failed to load for some reason. This is much
more useful for debugging failures and also gives
the user an opportunity to fix a partially successful
MDL import. This refactor also fixes a significant
bug where the fallback would be used even if the MDL
import succeeds. Refactored the report_notification()
utility function in the UMM conversion code to return
more meaningful results.

Added logic to generate file names for packed texture
assets when exporting USD Preview Surface shaders.
Previously, such asset paths were left empty and were
omitted from the export.

Updated the UsdUVTexture shader conversion code to
handle the case where the file input has a connected
source, which may happen if this input is overridden
by an input on the parent material.

Made the logic for determining the color
space for texture assets when collecting UMM
source data more robust by handling the case
where a connected source input has no color
space specified. The fix is to also query
the shader's input attribute for this data.
Revision ee4ed99 by Hans Goudey (master)
December 6, 2021, 17:19 (GMT)
Fix T93521: Single point NURBS crash in resample node

The resample node didn't handle the case of when a spline didn't have
any evaluated points. For poly and Bezier splines we should never hit
this case, but it is expected when the number of NURBS control points
is smaller than its order, so we have to handle the case here.

It's not that obvious what to do in this case, there are a few options:
- Remove the bad splines from the result
- Generate empty splines for those inputs
- Skip resampling the bad splines, copy them to the result
- Arbitrarily generate single point splines

I chose option three, just skipping the "bad" splines. Since the node
already has a selection input, this can be described by just extending
that. "Splines with no evaluated points are implicitly deselected."
The first option would probably be valid too though.

Differential Revision: https://developer.blender.org/D13434
December 6, 2021, 16:59 (GMT)
Nodes: Add Shader Socket to new decleration API

This commit adds the shader socket type to the new socket builder api.

As a test, this commit also converts the Add Shader node to the new API

Reviewed By: JacquesLucke

Differential Revision: https://developer.blender.org/D13485
December 6, 2021, 16:47 (GMT)
Shader Nodes: Unity Build

- Create a new `bf_nodes_shader` library
- Enable unity builds for `bf_nodes_shader`, gives abount a 2.7x speed up for compile times

Reviewed By: JacquesLucke

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