Age | Commit message (Collapse) | Author |
|
Differential Revision: https://developer.blender.org/D3668
|
|
Avoids having to use `__import__` to access modules.
|
|
|
|
MASS unit was already implemented for the C api. Only making sure it is
accessible in the python api. Also added 'CAMERA' to the documentation as a valid option.
|
|
Was returning -1 as a bool argument,
in this case the caller needs to ensure non-null args.
|
|
Utility to get an int or pointer from a Python expression.
|
|
Differential Revision: https://developer.blender.org/D3628
|
|
|
|
This make the root flag writable using the Python API, using the
generic skin vertex flag setter function.
Reviewed By: Campbell Barton
Differential Revision: http://developer.blender.org/D3583
|
|
|
|
Now disabling anti-aliasing doesn't impact sequencer, render stamp etc.
|
|
D3473 by @JacquesLucke
|
|
|
|
ddee0931b868 added PROP_RAW_BOOLEAN case for foreach_set, but missed
foreach_get
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D3534
|
|
quaternion
Reviewed By: campbellbarton
Differential Revision: https://developer.blender.org/D3487
|
|
Useful so Python can clean up before/after undo steps.
|
|
In Python3.7 this now raises an error.
|
|
|
|
|
|
|
|
|
|
We were using int's for bool arguments in BKE,
just to avoid having wrapper functions.
|
|
|
|
DD348 by @kilon w/ edits.
|
|
|
|
Essentially 'validating' them as G_MAIN, and adding some asserts in
dubious places, that handled IDs are actually in G_MAIN.
|
|
Limit to a restricted set of built-ins, as well as the math module.
Also restrict of op-codes, disallowing imports and attribute access.
This allows most math expressions to run
without any performance cost once the initial check is done.
See: D1862 for details.
|
|
Use BLI_path_extension_* prefix.
|
|
|
|
|
|
Avoid accidentally operating on the wrong region type.
|
|
This returns the first as a fallback, causing confusing usage.
Renamed and added a version of the function that doesn't.
|
|
Missing Main pointer in recent refactor/cleanup of G.main usages...
|
|
Sometimes one needs a *lot* of changes for a single G.main... :/
|
|
Notes:
* Really need to address RNA setters case, end up adding way too much
G.main here these days... :/
* Added Main pointer into bAnimContext, helps a lot in anim code ;)
|
|
Support only basic operations new/load/write & resize.
Add now so we can extend as needed & more easily accept patches.
|
|
|
|
|
|
Strip unindented comment blocks - mainly headers to avoid conflicts.
|
|
This commit contains the minimum to make clang build/work with blender, asan and ninja build support is forthcoming
Things to note:
1) Builds and runs, and is able to pass all tests (except for the freestyle_stroke_material.blend test which was broken at that time for all platforms by the looks of it)
2) It's slightly faster than msvc when using cycles. (time in seconds, on an i7-3370)
victor_cpu
msvc:3099.51
clang:2796.43
pavillon_barcelona_cpu
msvc:1872.05
clang:1827.72
koro_cpu
msvc:1097.58
clang:1006.51
fishy_cat_cpu
msvc:815.37
clang:722.2
classroom_cpu
msvc:1705.39
clang:1575.43
bmw27_cpu
msvc:552.38
clang:561.53
barbershop_interior_cpu
msvc:2134.93
clang:1922.33
3) clang on windows uses a drop in replacement for the Microsoft cl.exe (takes some of the Microsoft parameters, but not all, and takes some of the clang parameters but not all) and uses ms headers + libraries + linker, so you still need visual studio installed and will use our existing vc14 svn libs.
4) X64 only currently, X86 builds but crashes on startup.
5) Tested with llvm/clang 6.0.0
6) Requires visual studio integration, available at https://github.com/LazyDodo/llvm-vs2017-integration
7) The Microsoft compiler spawns a few copies of cl in parallel to get faster build times, clang doesn't, so the build time is 3-4x slower than with msvc.
8) No openmp support yet. Have not looked at this much, the binary distribution of clang doesn't seem to include it on windows.
9) No ASAN support yet, some of the sanitizers can be made to work, but it was decided to leave support out of this commit.
Reviewers: campbellbarton
Differential Revision: https://developer.blender.org/D3304
|
|
C code was not correctly handling release of temp data, not technically
a memory leak, but indeed rather annoying bug! ;)
|
|
Was using Python which wasn't very efficient (even for logging).
|
|
This fits in with existing dict style access.
|
|
Match dict.pop behavior.
|
|
Useful for logging properties passed to operators.
|
|
|
|
This doesn't change the API, so it doesn't affect any script.
However it give more consistent error messages.
|
|
|
|
|
|
Adds categories "bpy.context" & "bpy.rna"
|