39ee0f01e3
Merge branch 'master' into blender2.8
2018-08-31 14:25:42 +10:00
98800aa4e0
C/Python API: Add PyC_RunString_AsIntPtr
...
Utility to get an int or pointer from a Python expression.
2018-08-31 14:21:32 +10:00
039b11f349
PyRNA: all optional args now must be keyword args
...
In some cases the RNA API should be updated to make arguments use the
'required' flag, instead of adjusting Python scripts.
See T47811
2018-08-28 13:55:11 +10:00
596c3368f4
Merge branch 'master' into blender2.8
2018-08-21 19:08:23 +02:00
Kenneth Perry
5dd64b3c88
Python API: expose missing LAYER_MEMBER property type registration.
...
Differential Revision: https://developer.blender.org/D3628
2018-08-21 13:03:25 +02:00
f189ad1f4b
Cleanup: rename gizmo access functions
...
Add float in API names since we may want access to other types.
2018-08-21 17:01:14 +10:00
d63c181887
Correct error in docstring
2018-08-17 00:07:00 +10:00
0f449541d2
Merge branch 'master' into blender2.8
2018-08-01 09:01:29 +10:00
6a39d72558
Cleanup: declare vars or make static
2018-08-01 08:57:31 +10:00
8cd7828792
GWN: Port to GPU module: Replace GWN prefix by GPU
2018-07-18 11:49:15 +02:00
77d70c7f1d
Merge branch 'master' into blender2.8
2018-07-16 15:16:00 +02:00
43f0af734e
Fix T55944: fbx export error with smoothing face
...
ddee0931b8
added PROP_RAW_BOOLEAN case for foreach_set, but missed
foreach_get
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D3534
2018-07-16 15:03:21 +02:00
57ab7daa2a
GPU_matrix: use Blender's naming conventions
...
Thanks to @sergey for review
2018-07-15 15:34:13 +02:00
b457cae397
Cleanup: use variable names based on term gizmo
2018-07-15 14:35:33 +02:00
5ebebcfbff
WM: rename manipulator to gizmo internally
2018-07-14 23:49:00 +02:00
cd16004132
WM: rename files, manipulator -> gizmo
...
Edit doxy files and header guards only.
2018-07-14 23:16:34 +02:00
415018778c
PyAPI: show line, not call-stack for field warning
...
Was too noisy and hard to tell warnings from exceptions.
2018-07-12 15:22:55 +02:00
69b7ae8397
Merge branch 'master' into blender2.8
2018-07-12 14:46:48 +02:00
753a600e35
PyAPI: add undo redo handlers
...
Useful so Python can clean up before/after undo steps.
2018-07-12 14:43:35 +02:00
55354d734e
Merge branch 'master' into blender2.8
2018-07-12 08:31:19 +02:00
1db47a2ccd
Fix PyRNA class registration w/ Python 3.7
...
In Python3.7 this now raises an error.
2018-07-12 08:30:39 +02:00
09aa799e53
PyAPI: Use annotations for RNA definitions
...
- Logical use of fields since they define type information.
- Avoids using ordered-dict metaclass.
Properties using regular assignments will print a warning and load,
however the order is undefined.
2018-07-11 22:18:09 +02:00
4ac048f4e4
Merge branch 'master' into blender2.8
2018-07-06 19:34:41 +02:00
b94222b090
PyDrivers: update bytecode check for Python3.6
2018-07-06 19:31:00 +02:00
b076b3853c
Merge branch 'master' into blender2.8
2018-07-02 12:03:56 +02:00
b88e51dd55
Cleanup: use bool for poll functions
2018-07-02 11:51:31 +02:00
36a9436d80
Merge branch 'master' into blender2.8
2018-07-01 16:22:06 +02:00
ddee0931b8
RNA: use bool for boolean RNA types
...
We were using int's for bool arguments in BKE,
just to avoid having wrapper functions.
2018-07-01 15:57:59 +02:00
9bd0c63382
Merge branch 'master' into blender2.8
2018-06-29 08:05:38 +02:00
af36dd4664
Cleanup: trailing newlines
2018-06-29 08:02:49 +02:00
646412004b
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/makesrna/intern/rna_image.c
source/blender/makesrna/intern/rna_object.c
source/blender/makesrna/intern/rna_object_force.c
source/blender/makesrna/intern/rna_screen.c
source/blender/makesrna/intern/rna_sculpt_paint.c
source/blender/makesrna/intern/rna_space.c
source/blender/python/bmesh/bmesh_py_types.c
source/blender/python/generic/bpy_internal_import.h
source/blender/python/intern/bpy_rna_anim.c
source/blender/python/intern/gpu_offscreen.c
2018-06-22 12:46:16 +02:00
cbf5c738d6
Cleanup: get rid of last G.main's in bpy area.
...
Essentially 'validating' them as G_MAIN, and adding some asserts in
dubious places, that handled IDs are actually in G_MAIN.
2018-06-22 11:37:47 +02:00
de4c81c153
Fix merge error in bpy_driver.c
2018-06-18 15:09:55 +02:00
05dc109553
Merge branch 'master' into blender2.8
2018-06-17 20:37:10 +02:00
2ceff8bd63
Python: Allow untrusted py-drivers to run limited expressions
...
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.
2018-06-17 20:01:05 +02:00
56173e512c
Merge branch 'master' into blender2.8
2018-06-17 16:18:15 +02:00
a0a1fc8938
Cleanup: BLI path extension API
...
Use BLI_path_extension_* prefix.
2018-06-17 16:13:24 +02:00
031416c559
Merge branch 'master' into blender2.8
2018-06-12 17:36:24 +02:00
b00d840359
WM: remove sloppy region type access
...
Avoid accidentally operating on the wrong region type.
2018-06-12 17:34:44 +02:00
760e79d809
WM: rename BKE_regiontype_from_id
...
This returns the first as a fallback, causing confusing usage.
Renamed and added a version of the function that doesn't.
2018-06-12 17:26:38 +02:00
ec4ce908db
Fix T55452: Crash on saving with visible particle system.
...
Missing Main pointer in recent refactor/cleanup of G.main usages...
2018-06-12 16:17:05 +02:00
3816502b7c
Drivers: ensure Python expressions are cached with copy-on-write.
...
Store the compiled expressions on the original driver.
Ref T55442.
2018-06-11 21:34:21 +02:00
94aa4d1657
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/blenkernel/BKE_sequencer.h
source/blender/blenkernel/intern/sequencer.c
source/blender/editors/curve/editcurve_paint.c
source/blender/editors/gpencil/gpencil_edit.c
source/blender/editors/gpencil/gpencil_paint.c
source/blender/editors/gpencil/gpencil_utils.c
source/blender/editors/include/ED_object.h
source/blender/editors/include/ED_view3d.h
source/blender/editors/interface/interface_eyedropper_depth.c
source/blender/editors/render/render_opengl.c
source/blender/editors/sculpt_paint/paint_image_proj.c
source/blender/editors/sculpt_paint/sculpt.c
source/blender/editors/space_view3d/drawobject.c
source/blender/editors/space_view3d/view3d_draw.c
source/blender/editors/space_view3d/view3d_edit.c
source/blender/editors/space_view3d/view3d_intern.h
source/blender/editors/space_view3d/view3d_select.c
source/blender/editors/space_view3d/view3d_utils.c
source/blender/editors/transform/transform_conversions.c
source/blender/editors/transform/transform_snap.c
source/blender/python/intern/gpu_offscreen.c
source/blender/windowmanager/intern/wm_files.c
2018-06-08 14:38:57 +02:00
7b6af843c2
Cleanup: getting rid of G.main.
...
Sometimes one needs a *lot* of changes for a single G.main... :/
2018-06-08 12:17:22 +02:00
508e34d0bf
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/editors/animation/anim_deps.c
source/blender/editors/animation/keyframing.c
source/blender/editors/animation/keyingsets.c
source/blender/editors/armature/pose_edit.c
source/blender/editors/armature/pose_transform.c
source/blender/editors/gpencil/gpencil_convert.c
source/blender/editors/include/ED_anim_api.h
source/blender/editors/include/ED_keyframing.h
source/blender/editors/interface/interface_anim.c
source/blender/editors/space_action/action_edit.c
source/blender/editors/space_graph/graph_edit.c
source/blender/editors/space_outliner/outliner_draw.c
source/blender/editors/transform/transform_conversions.c
source/blender/makesrna/intern/rna_armature.c
source/blender/makesrna/intern/rna_pose.c
source/blender/python/intern/bpy_rna_anim.c
source/blenderplayer/bad_level_call_stubs/stubs.c
source/gameengine/Converter/KX_BlenderSceneConverter.cpp
2018-06-07 13:04:16 +02:00
b3a7a75a26
Cleanup: remove moar G.main usages.
...
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 ;)
2018-06-07 12:48:29 +02:00
a60d4f33c6
Merge branch 'master' into blender2.8
2018-06-07 08:15:11 +02:00
409cfba1a3
Python API: Initial 'imbuf' API
...
Support only basic operations new/load/write & resize.
Add now so we can extend as needed & more easily accept patches.
2018-06-07 08:00:13 +02:00
f0d9dbae0d
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/blenkernel/intern/blendfile.c
source/blender/blenloader/intern/readfile.h
source/blender/blenloader/intern/versioning_250.c
source/blender/blenloader/intern/versioning_260.c
source/blender/blenloader/intern/versioning_270.c
source/blender/blenloader/intern/versioning_legacy.c
source/blender/editors/render/render_shading.c
source/blender/makesrna/intern/rna_movieclip.c
source/blender/render/intern/source/pipeline.c
source/blender/render/intern/source/voxeldata.c
2018-06-05 17:02:50 +02:00
481cdb08ed
Cleanup: use new accessors to blendfile path (Main.name).
2018-06-05 16:33:46 +02:00