Blender Git Commits

Blender Git "master" branch commits.

Page: 332 / 5574

March 25, 2021, 11:02 (GMT)
Geometry Nodes: rename attribute domains

This patch renames two domains:
* `Polygon` -> `Face`
* `Corner` -> `Face Corner`

For the change from `polygon` to `face` I did a "deep rename" where I updated
all (most?) cases where we refere to the attribute domain in code as well.
The change from `corner` to `face corner` is only a ui change. I did not see
a real need to update all code the code for that. It does not seem to improve
the code, more on the contrary.

Ref T86818.

Differential Revision: https://developer.blender.org/D10803
March 25, 2021, 10:21 (GMT)
Fix T86853: Critical bug in write code of CacheFile ID.

CacheFile writing code would not write generic ID data (call for it has
been missing since the initial commit, rB61050f75b13e).

While potentially affecting other areas (mostly CustomProperties/IDProperties),
this was a critical failure for liboverrides. Also added some workaround
code to allow opening broken files (though the override of the CacheFile
data-block will be lost).
March 25, 2021, 08:16 (GMT)
UI: rename node editor sidebar categories

* `Node` -> `Group`
* `Item` -> `Node`

Differential Revision: https://developer.blender.org/D10804
March 24, 2021, 17:47 (GMT)
GPencil: Fix wrong file extension when exporting SVG

Due a code cleanup it was using .PDF all times.
Revision 43c4896 by Ankit Meel
March 24, 2021, 17:15 (GMT)
Cleanup: Fix unused-private-field warning.
March 24, 2021, 16:56 (GMT)
Cleanup: Add override keyword.
Revision 9ad3d1d by Hans Goudey
March 24, 2021, 16:44 (GMT)
Cleanup: Remove unecessary enum funcs

The separator can be added directly in the enum items rather than in
a callback.

Differential Revision: https://developer.blender.org/D10806
Revision a363d64 by Hans Goudey
March 24, 2021, 16:36 (GMT)
UI: Use correct property split ratio for node socket buttons

This makes the buttons drawn on nodes for unconnected string and color
sockets draw with the correct 40% ratio for the label split rather than
the old 50% ratio not used elsewhere in Blender anymore. The benefit is
a cleaner look, because the button edges line up better with others, and
a bit more space to type in attribute names.
March 24, 2021, 16:01 (GMT)
Fix broken compilation after recent GPencil commit.

rBa8a92cd15a52 was adding external libraries includes to `INC`, which is
reserved to internal project includes.

`INC` does not allow duplicates, and when using system libs both PugiXML
and Haru headers are under the same path.
March 24, 2021, 15:38 (GMT)
Fix (unreported) Outliner: missing override tree items for collections in Viewlayer view.

Probably lost at some point in recent refactor moving the whole tree
building towards a more modular, C++ code.
Revision bf0454b by Hans Goudey
March 24, 2021, 15:33 (GMT)
Fix build error and warnings in new grease pencil IO code
March 24, 2021, 15:23 (GMT)
Fix T86884: Don't remove the "line art object add" enum item

We would not add the "object line art" enum to the operator enum list,
if there were no active object in the scene.

This would make it impossible to call this operator from python code as
the enum would we hidden when we were not in a viewport context.

Always make the operator available, having no active object is not a
strict requirement for the operator to work, so expose it always.
Revision 8060293 by Hans Goudey
March 24, 2021, 15:05 (GMT)
Fix T86875: "Show on Cage" crash for geometry nodes primitives

Without `calc_object_remap` turned off in the conversion to and from
BMesh for the primitive nodes, the `CD_ORIGINDEX` custom data layer
has incorrect values. By using a different function to do the conversions,
we can avoid this problem.

Thanks to Jacques for finding the fix here.

Differential Revision: https://developer.blender.org/D10805
March 24, 2021, 15:01 (GMT)
GPencil: Fix unreported crash when apply Lattice modifier

This error was produced because now it is possible to have several Lattice modifiers and the Bake was removing the lattice data of all modifiers.

Now the data is only recalculated and removed for the current modifier.

Also some cleanup of comments.
March 24, 2021, 14:28 (GMT)
GPencil: New modules for Import and Export

This patch adds support to export and import grease pencil in several formats.

Inlude:

* Export SVG
* Export PDF (always from camera view)

* Import SVG

The import and export only support solid colors and not gradients or textures.

Requires libharu and pugixml.

For importing SVG, the NanoSVG lib is used, but this does not require installation (just a .h file embedded in the project folder)

Example of PDF export: https://youtu.be/BMm0KeMJsI4

Reviewed By: #grease_pencil, HooglyBoogly

Maniphest Tasks: T83190, T79875, T83191, T83192

Differential Revision: https://developer.blender.org/D10482
March 24, 2021, 14:24 (GMT)
Fix T86894: Geometry nodes drag and drop creates a duplicate node

Added a condition to the poll so that it ignores drag and drop on the button. The Paste Name operator is just not implemented. Doesn't work for shading nodes either.

Reviewed By: HooglyBoogly

Differential Revision: https://developer.blender.org/D10769
March 24, 2021, 14:24 (GMT)
Fix T86722: Missing updates after geometry nodes drag and drop

Add missing call to ED_node_tag_update_nodetree which solves the missing update on initial drag.

Reviewed By: HooglyBoogly

Differential Revision: https://developer.blender.org/D10769
March 24, 2021, 14:11 (GMT)
Tweak default ID types processing order, step 01: Collections.

Move `OB_GR` processing just after scenes, and before objects.

This is much more sensible in general, and fixes glitches in auto-resync
process of library overrides in particular.
March 24, 2021, 14:11 (GMT)
Tweak default ID types processing order, step 02: Simulations.

This is a fairly low-level ID type, so it needs to be higher in the
list, for now put it just before the shading-related types.
March 24, 2021, 14:11 (GMT)
Tweak default ID types processing order, step 03: Mask.

Move it with the rest of the image/shading related types.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021