Tamito Kajiyama
a42ba82f63
Merged changes in the trunk up to revision 50829.
...
Conflicts resolved:
source/blender/blenloader/intern/readfile.c
source/blender/render/intern/source/convertblender.c
source/blender/render/intern/source/pipeline.c
Also addressed code inconsistency due to changes in the trunk revision 50628 (color
management with OCIO) and 50806 (UV project material). OCIO-related changes are marked
OCIO_TODO as in some other files modified in revision 50628.
2012-09-23 18:50:56 +00:00
Campbell Barton
e75f5c8208
quiet -Wmissing-prototypes warnings, and enable this warning by default for C with gcc.
...
helps for finding unused functions and making functions static, also did some minor code cleanup.
2012-09-15 01:52:28 +00:00
Tamito Kajiyama
4172997675
Merged changes in the trunk up to revision 50607.
...
Conflicts resolved:
source/blender/blenloader/intern/readfile.c
2012-09-15 00:15:24 +00:00
Campbell Barton
cf5da37e3c
fix for a bug running a script, then opening a new file.
...
BPY_text_free_code() could run outside the python interpreter which abort()'s blender.
2012-09-10 23:32:46 +00:00
Campbell Barton
a9f10b6bc2
style cleanup
2012-09-08 06:40:03 +00:00
Campbell Barton
e2eea6c38d
fix/workaround [ #31555 ] Username with special chars in Windows 7
...
Theres a bug where python/windows ignores PYTHONIOENCODING, workaround this by manually overriding the stdout/stderr.
2012-09-05 09:33:15 +00:00
Campbell Barton
3804b2d2ba
fix [ #31856 ] movieclips.load(filepath=None) or value crash Blender
...
workaround for python bug/inconsistency
2012-09-04 05:36:07 +00:00
Tamito Kajiyama
141dd5233e
Merged changes in the trunk up to revision 50257.
...
Conflicts resolved:
source/blender/blenkernel/CMakeLists.txt
2012-08-29 00:53:29 +00:00
Campbell Barton
7aeaeaf378
fix bug in mathutils.geometry.intersect_point_line() where 4D vectors were treated as 2D.
...
also change behavior to return a 2d vector when all args are 2D.
2012-08-28 11:27:46 +00:00
Campbell Barton
c43583a23a
fix for own crash caused by curve refactor, now curve tables are initialized once when the tree is initialized.
...
thanks to Antony Riakiotakis for providing a fix, though this works a little different.
2012-08-28 10:02:10 +00:00
Campbell Barton
77f0be7fec
support unary positive operators for vectors (same as numpy), so you can do 'vector_a = +vector_b', this makes a copy.
2012-08-27 13:40:19 +00:00
Campbell Barton
ee96cde864
style cleanup: whitespace
2012-08-26 11:35:43 +00:00
Campbell Barton
71d1b09708
minor code cleanup
2012-08-25 12:55:14 +00:00
Campbell Barton
1939baa47d
style cleanup
2012-08-22 16:44:32 +00:00
Campbell Barton
4a6395cc21
fix for own error in bpy.utils.blend_paths() arg parsing.
2012-08-20 10:14:11 +00:00
Tamito Kajiyama
22b30da565
Merged changes in the trunk up to revision 49986.
2012-08-18 15:20:35 +00:00
Tamito Kajiyama
44e4c5f831
Merged changes in the trunk up to revision 49797.
2012-08-12 00:09:57 +00:00
Campbell Barton
b96c622015
style cleanup
2012-08-11 22:12:32 +00:00
Campbell Barton
0b5a995cfd
code cleanup: rename G.rt to G.debug_value
2012-08-08 18:21:54 +00:00
Campbell Barton
e9d73dbba5
use -FLT_MAX where FLT_MIN was misused
2012-08-07 19:49:38 +00:00
Campbell Barton
719aedaf60
mask - draw both sides of the curve when filled option is disabled.
2012-08-07 13:37:16 +00:00
Campbell Barton
b218d90176
fix a crash when python is registering enum properties and the items argument is a generator (some sequence type besides a list/typle), in this case it could free the strings before blender duplicates them.
...
this fixes [#32192 ] Import Images as Planes script is broken
2012-08-07 10:03:14 +00:00
Campbell Barton
0a35e050f3
code cleanup: remove redundant calls to CTX_data_main()
2012-08-05 14:11:51 +00:00
Campbell Barton
9ff4fa6671
style cleanup
2012-08-04 12:30:16 +00:00
Tamito Kajiyama
4ea2fb8b0a
Merged changes in the trunk up to revision 49478.
...
Conflicts resolved:
source/blender/blenkernel/intern/library.c
source/blender/blenloader/intern/readfile.c
source/blender/editors/interface/resources.c
source/blender/makesrna/intern/rna_scene.c
2012-08-02 00:10:05 +00:00
Campbell Barton
41ee294618
don't pass the same value to axis_angle_to_quat() for axis & quat.
...
-/-This line, and those below, will be ignored--
M mathutils_Quaternion.c
2012-07-25 16:46:46 +00:00
Lukas Toenne
dee1d86e65
Fix for RNA struct registration: the bpy_class_validate function would only check the immediate functions/properties of the pointer struct type, but not potential base structs. Now it first validates the base struct recursively before the actual properties of the registered class.
...
Does not have any effect for current registerable types (Operator, Menu, Panel, etc.), since none of those actually have a base struct, but will be required for future types with an actual hierarchy (custom nodes).
2012-07-24 12:00:02 +00:00
Campbell Barton
df3f3dff3b
patch [ #31925 ] Add a BMElemSeq.sort() method
...
from Antonio Ospite (ao2)
wrap bmesh sort function for python api, eg:
bm.faces.sort(key=lambda f: f.material_index)
2012-07-22 21:13:32 +00:00
Campbell Barton
76bea854b6
code cleanup: replace cos(M_PI / 4) and sin(M_PI / 4) with M_SQRT1_2 define
...
also some minor style cleanup.
2012-07-22 18:40:50 +00:00
Campbell Barton
90d215535e
add option so operators can be called with a flag, currently the only flag is to respect hidden geometry.
...
this is useful for bmesh tools that operate in object mode or for modifiers which would previously use hidden faces in some cases.
2012-07-21 00:58:02 +00:00
Tamito Kajiyama
3b012c041f
Merged changes in the trunk up to revision 49090.
2012-07-20 23:12:05 +00:00
Campbell Barton
9c8edae7d4
fix for separate loose parts doing full depsgraph rebuild for every object split off.
2012-07-19 10:23:25 +00:00
Campbell Barton
4bc46b18d1
handy function for getting a python stacktrace while debugging in gdb
2012-07-19 09:55:49 +00:00
Campbell Barton
4408a4aeff
remove unneeded externs
2012-07-19 09:23:31 +00:00
Bastien Montagne
382ded688a
Spellcheck: minkovsky -> minkowski! (Only in comments/UI messages :/ ).
2012-07-17 18:14:59 +00:00
Campbell Barton
32cf7fcdb1
code cleanup: spelling
2012-07-16 23:23:33 +00:00
Tamito Kajiyama
065605e0da
Merged changes in the trunk up to revision 48893.
...
Conflicts resolved:
source/blender/blenkernel/CMakeLists.txt
source/blender/blenloader/intern/readfile.c
source/blender/editors/animation/anim_filter.c
source/blender/makesrna/RNA_enum_types.h
2012-07-13 23:23:06 +00:00
Campbell Barton
98969c64ff
code cleanup: move sequencer timecode into its own func.
2012-07-09 10:55:41 +00:00
Campbell Barton
b91bc4f037
use gcc attrubutes to warn on unused return values and arguments which shouldnt be NULL.
...
also remove IDP_AppendArray's return value which wasnt the new item in the array (which is odd/misleading), but wasnt used anywhere either.
2012-07-08 06:00:27 +00:00
Campbell Barton
cfb7aee017
style cleanup
2012-07-07 22:51:57 +00:00
Campbell Barton
84bf3e48c0
style cleanup: use c style comments in C code
2012-07-06 23:56:59 +00:00
Tamito Kajiyama
b7b5029814
Merged changes in the trunk up to revision 48695.
2012-07-06 23:46:48 +00:00
Bastien Montagne
558721ab59
More spell checking.
2012-07-04 15:04:38 +00:00
Campbell Barton
81a509fa40
fix error in node template and quiet warning.
2012-07-03 21:03:39 +00:00
Campbell Barton
314a275850
fix (actually nasty workaround), for groups incorrectly drawing in the object panel when the blend file has naming collisions with library data.
...
also minor style cleanup in bpy_rna.c
2012-07-03 10:32:10 +00:00
Tamito Kajiyama
98a7ca61fa
Merged changes in the trunk up to revision 48505.
2012-07-03 00:02:45 +00:00
Campbell Barton
2ed69a95f4
add bmesh/python operator support for vector and matrix args.
...
also rename BMO_OP_SLOT_PNT to BMO_OP_SLOT_PTR (matches RNA and sounds less like 'point')
2012-07-02 20:28:43 +00:00
Campbell Barton
39ca3146ff
fix for some build warnings.
2012-06-30 16:56:23 +00:00
Campbell Barton
e6d55c97dd
add support for passing lists of verts/edges/faces to bmesh operators
2012-06-30 12:58:04 +00:00
Campbell Barton
3e99ec8d3d
all bmesh operators can now be accessed from bmesh.ops.* using a generic wrapper,
...
argument parsing still needs to have support added for vector, matrix and element types.
2012-06-30 11:14:10 +00:00