0e3de1df4b
fix [ #31661 ] Custom properties do no respect min/max values
...
also renamed function added prev commit
2012-10-26 10:54:02 +00:00
0e6f8e3e25
fix for crash when a python operator or render engine was freed in the C code and then referenced from python.
...
now further access in python gives an exception at the line when the freed data is accessed.
2012-10-26 10:33:57 +00:00
0e494b74c4
style cleanup
2012-10-26 04:14:10 +00:00
2223ca1c20
Fix #32973 : crash adding python property with update=None parameter passed.
2012-10-25 22:37:05 +00:00
d599b643b7
style cleanup: bge, switch statements mostly.
...
also left bmesh decimator on in previous commit.
2012-10-21 07:58:38 +00:00
f3ece5a108
style cleanup: trailing tabs & expand some non prefix tabs into spaces.
2012-10-21 05:46:41 +00:00
c56a911cd9
style cleanup: comments
2012-10-20 20:20:02 +00:00
55015daa43
Merged changes in the trunk up to revision 51448.
...
Conflicts resolved:
source/blender/blenkernel/CMakeLists.txt
source/blender/blenloader/intern/readfile.c
source/blender/editors/mesh/editmesh_tools.c
source/blender/makesrna/intern/rna_main_api.c
2012-10-20 16:48:48 +00:00
536d9fec80
code cleanup:
...
- move object_iterators.c --> view3d_iterators. (ED_object.h had to include ED_view3d.h which isn't so nice)
- move projection functions from view3d_view.c --> view3d_project.c (view3d_view was becoming a mishmash of utility functions and operators).
- some some cmake includes as system-includes.
2012-10-17 04:13:03 +00:00
da9394f596
code cleanup: define sizes of vectors for function args and use C style comments
2012-10-15 09:11:17 +00:00
b7f4c69ef7
More UI messages and BKE_reportf->BKE_report fixes...
2012-10-14 15:29:09 +00:00
97d4fb4161
code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too.
2012-10-09 13:36:42 +00:00
1fe70c07a0
Merged changes in the trunk up to revision 51126.
...
Conflicts resolved:
source/blender/blenloader/intern/readfile.c
source/blender/windowmanager/WM_types.h
2012-10-06 23:32:21 +00:00
75fff05348
revert fix for [ #31555 ] Username with special chars in Windows 7
...
this breaks and causes bug: [#32720 ], where sys.stdout becomes invalid and print() does nothing.
On investigation - python is not getting the environment variable from blender (aparently because its a DLL?) so this should be resolved rather then overwriting sys.stdout.
2012-10-02 13:24:28 +00:00
b04b8fd0e8
fix for crash found when attempting to setup testing environment to find crashes :)
...
scripts that have `Register` enabled and load another blend file would crash blender.
2012-10-01 14:14:21 +00:00
e91f33101f
Merged changes in the trunk up to revision 50956.
...
Conflicts resolved:
source/blender/editors/interface/resources.c
2012-09-30 13:16:55 +00:00
ed1cda9a6c
style cleanup
2012-09-30 06:12:47 +00:00
9fccfd313c
correct addon example, it used both __doc__ and bl_description
2012-09-29 11:51:18 +00:00
79d8367974
add warning that RNA update callbacks dont have checks for infinite recursion.
2012-09-28 09:35:32 +00:00
589ada7f0c
code cleanup: correct spelling
2012-09-28 06:45:20 +00:00
95002a98bf
fix for very bad bug with python list slicing which - in bmesh and bpy api for all? 2.5x + releases.
...
negative stop values when slicing was broken. eg.
bpy.data.objects[0:-2] != list(bpy.data.objects)[0:-2]
2012-09-25 23:41:32 +00:00
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
552cd4b7e7
fix for crash executing a python script.
...
nice obscure case, when a script executes, frees its self (by loading a file for eg), then has a python error.
... in this case blender would fetch the python exception and attempt to move the cursor in the freed textblock to the error line, crashing blender.
2012-09-23 06:25:39 +00:00
537c3375b5
fix for crash getting a member from the operator context override, in some cases python didnt hold the GIL.
2012-09-21 22:31:02 +00:00
25c96bc9f3
code cleanup: remove unused macros, commet some which may be useful later - or good to keep for completeness. quieted some warnings and add flags -Wmissing-include-dirs and -Wno-div-by-zero to cmake/gcc
2012-09-20 01:02:39 +00:00
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
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
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
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
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
71d1b09708
minor code cleanup
2012-08-25 12:55:14 +00:00
1939baa47d
style cleanup
2012-08-22 16:44:32 +00:00
4a6395cc21
fix for own error in bpy.utils.blend_paths() arg parsing.
2012-08-20 10:14:11 +00:00
44e4c5f831
Merged changes in the trunk up to revision 49797.
2012-08-12 00:09:57 +00:00
0b5a995cfd
code cleanup: rename G.rt to G.debug_value
2012-08-08 18:21:54 +00:00
e9d73dbba5
use -FLT_MAX where FLT_MIN was misused
2012-08-07 19:49:38 +00:00
719aedaf60
mask - draw both sides of the curve when filled option is disabled.
2012-08-07 13:37:16 +00:00
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
0a35e050f3
code cleanup: remove redundant calls to CTX_data_main()
2012-08-05 14:11:51 +00:00
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
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
3b012c041f
Merged changes in the trunk up to revision 49090.
2012-07-20 23:12:05 +00:00
32cf7fcdb1
code cleanup: spelling
2012-07-16 23:23:33 +00:00
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
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
cfb7aee017
style cleanup
2012-07-07 22:51:57 +00:00
84bf3e48c0
style cleanup: use c style comments in C code
2012-07-06 23:56:59 +00:00
b7b5029814
Merged changes in the trunk up to revision 48695.
2012-07-06 23:46:48 +00:00
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
98a7ca61fa
Merged changes in the trunk up to revision 48505.
2012-07-03 00:02:45 +00:00