Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
This computation is complex and useful enough to expose the existing
C math utility used by BVH nearest to Python. Otherwise this requires
the use of intersect_point_tri and multiple intersect_point_line calls
with some added vector math.
Differential Revision: https://developer.blender.org/D6200
|
|
|
|
Needed for standalone mathutils module.
|
|
Also remove historic bftgl reference.
|
|
D6038 by @Dormouse
|
|
Silence deprecation warnings running with Python 3.8.
|
|
|
|
|
|
|
|
Use mathutils_array_parse which converts any sequence of numbers.
|
|
Use fixed normal for 2D input, no need to calculate it.
|
|
|
|
This commit solves the bug itself (code was broken when real_id owner of
the private data ID could not be found), and generates a more sensible
representation for all evaluated IDs, makes no sense to display them as
being part of `bpy.data....`!
|
|
Differential Revision: https://developer.blender.org/D5879
|
|
This gives better error messages, simplify code.
|
|
|
|
More convenient than comparing strings,
with the advantage that errors don't need to repeat expected values.
|
|
|
|
The RNA docstring of `keyframe_insert()` didn't mention the `options`
parameter in the function signature.
No functional changes.
|
|
code.
Do not see any reason not to copy over the flag of the old, existing
IDProp to the new one when assigning (e.g. `C.object['prop'] = 0.5`
would nuke that IDProp flag).
|
|
|
|
|
|
D5857 by @cmbasnett
|
|
This decomposition is useful in rigging, and involves a math trick.
|
|
|
|
This reverts commit b53ee963b16d817a6367bd7c73b866036868b2e2.
Full support for defining modal enums and access through events
is more involved, revert for now.
|
|
Support assigning modal keymaps once the operator is registered.
|
|
D5804 by @cmbasnett with setter support added.
|
|
Match RNA image naming.
|
|
|
|
Can not re-use single typle even if there is a single input pointer:
the all-arguments-typle consists of 2 elements.
|
|
The goal is to make it possible to access evaluated datablocks at a
corresponding context. For example, be able to check evaluated state
if an object used for rendering.
Allows to write scripts in a safe manner for T63548 and T60094.
Reviewers: brecht
Differential Revision: https://developer.blender.org/D5726
|
|
Currently unused, but will allow to keep of an owner of the depsgraph.
Could also simplify other APIs in the future by avoiding to pass bmain
explicitly to relation update functions and things like that.
|
|
|
|
Preparing for the bigger changes which will be related on passing
dependency graph to various callbacks which need it.
Differential Revision: https://developer.blender.org/D5725
|
|
When the result isn't used, prefer post increment/decrement
(already used nearly everywhere in Blender).
|
|
Blender UI Layout API allows supplying parameters to operators via
button definitions. If an operator behavior strongly depends on its
parameters, it may be difficult to write a tooltip that covers all
of its operation modes. Thus it is useful to provide a way for the
operator to produce different descriptions based on the input info.
Reviewers: campbellbarton
Differential Revision: https://developer.blender.org/D5709
|
|
Allows to customize interface and inform about lack of
subdivision surface support.
|
|
We can now generate a proper path here, make use of it.
Note: not sure how property pyrna path is supposed to be accessed? code is
similar to the struct pyrna path anyway...
|
|
The old layout of `PointerRNA` was confusing for historic reasons:
```
typedef struct PointerRNA {
struct {
void *data;
} id;
struct StructRNA *type;
void *data;
} PointerRNA;
```
This patch updates it to:
```
typedef struct PointerRNA {
struct ID *owner_id;
struct StructRNA *type;
void *data;
} PointerRNA;
```
Throughout the code base `id.data` was replaced with `owner_id`.
Furthermore, many explicit pointer type casts were added which
were implicit before. Some type casts to `ID *` were removed.
Reviewers: brecht, campbellbarton
Differential Revision: https://developer.blender.org/D5558
|
|
|
|
Helps debugging errors when classes are registered twice.
|
|
|
|
Some statements were split across multiple lines because of their
trailing comments.
In most cases it's clearer to put the comments above.
|