Age | Commit message (Collapse) | Author |
|
Logic for registering and checking properties of registrable classes was
broken, allowing to ignore some errors.
Recent fix rBeb798de101a `broke` the result of the
pyapi_idprop_datablock test, because previously that test would fail
(i.e. suceed, as it is an 'expected to break test') for a reason it was
not designed to check.
This is the problem with that kind of tests - you cannot really check
that they are failing on the expected reason(s)...
|
|
This was an old bug which could be caused by saving after separating.
Changes from 79b703bb635e made this fail reliably.
Update shape key indices when they may be used again later.
|
|
|
|
Don't modify the Python reference when copying custom-data.
|
|
Also correct some outdated symbol references,
add missing 'name' commands.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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...
|