Blender Git Commits

Blender Git "master" branch commits.

Page: 192 / 5574

July 30, 2021, 14:15 (GMT)
Cleanup: remove redundant ifdef check

The define that was tested no longer exists.
Revision eb2a6f4 by Julian Eisel
July 30, 2021, 13:54 (GMT)
Fix T90318: Dragging asset while Asset Browser is still loading crashes

This partially reverts cb0b017d8f51: We can't store the asset handle in
the drag data, because the file pointer it wraps may be freed as the
Asset Browser generates its file list.
Revision 4647ffd by Julian Eisel
July 30, 2021, 12:34 (GMT)
Cleanup: Remove unused file description storage

This isn't used at all in the current File and Asset Browser design.
July 30, 2021, 12:29 (GMT)
Cleanup: headers, use 'pragma once', remove argument to 'file'
July 30, 2021, 12:20 (GMT)
Cleanup: missing leading '*' from comment blocks
July 30, 2021, 11:56 (GMT)
Cleanup: workaround for unstable formatting in clang-format

Running multiple times would re-indent differently.
Revision a787bcb by Flix / Campbell Barton
July 30, 2021, 11:43 (GMT)
Fix: script.reload() operator reloads current app template

Ref D12040
July 30, 2021, 11:40 (GMT)
Update REAME.md file
July 30, 2021, 11:16 (GMT)
Kernel: include header file in BKE_appdir.h defining size_t

In `BKE_appdir.h`, include `<stddef.h>` as that defines `size_t`. This
follows the "include what you use" principle, and makes it possible to
use `BKE_appdir.h` without having to bother with its dependencies.

No functional changes.
July 30, 2021, 06:44 (GMT)
Cleanup: limit scope of temporary variables

Also remove early return as it duplicates cleanup calls.
July 30, 2021, 06:19 (GMT)
Cleanup: clang-format (re-run after v12 version bump)
July 30, 2021, 06:16 (GMT)
Cleanup: spelling in comments
July 30, 2021, 06:04 (GMT)
PyAPI: defer freeing existing properties on registration

Registering a property could remove the existing property,
then fail to parse one of the arguments of the new property -
leaving the struct without a property.

Now freeing the existing property is deferred until immediately
before the new property is registered.
July 30, 2021, 06:04 (GMT)
PyAPI: include the property name & type in registration errors

This gives useful context in errors,
also remove newline endings from exceptions.
July 30, 2021, 06:03 (GMT)
Cleanup: use pyrna_enum_value_parse_string parser for enum args
July 30, 2021, 06:03 (GMT)
Cleanup: bpy.props variable names

- Use `default` instead of `def` abbreviation.
- Rename `BPYPropArrayLength` to `BPyPropArrayLength`
in keeping with other local structs.
- Remove _PyArg_Parser.fname value accidentally left in
(harmless as it's not used).
July 30, 2021, 06:03 (GMT)
PyAPI: support accessing the original value for RNA enum parsing

Needed in siturations when the input argument is needed for exception messages.
July 30, 2021, 01:57 (GMT)
Cleanup: replace macros with converter callbacks for bpy.props

Macros were used for expanding shared logic for some properties.

Replace this with Python converters & a funciton that handles
deferred registration.

Add generic converter functions for RNA enums:

- pyrna_enum_value_parse_string
- pyrna_enum_bitfield_parse_set
July 29, 2021, 20:30 (GMT)
GPencil: Fix unreported problems painting after import SVG

After doing an import, the bounding box of the stroke was not calculated and any operation related to brushes (Sculpt, Weight Paint and Vertex Paint) was not working as expected because the bounding box of the stroke was wrong.

This problem was solved automatically after any edit operation, but must be solved in the import process.
July 29, 2021, 20:16 (GMT)
Fix T89213: Some modifier properties have wrong subtype

This commit resolves these RNA warnings:
```
offset: "", WARN (bpy.rna): ...sourceblenderpythoninternbpy_rna.c:1505 pyrna_enum_to_py: current value '65536' matches no enum in 'FloatProperty', 'offset', 'subtype'
project_limit: "", WARN (bpy.rna): ...sourceblenderpythoninternbpy_rna.c:1505 pyrna_enum_to_py: current value '65536' matches no enum in 'FloatProperty', 'project_limit', 'subtype'
falloff_radius: "", WARN (bpy.rna): ...sourceblenderpythoninternbpy_rna.c:1505 pyrna_enum_to_py: current value '65567' matches no enum in 'FloatProperty', 'falloff_radius', 'subtype'
```
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021