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
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
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
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
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
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
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
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
32cf7fcdb1
code cleanup: spelling
2012-07-16 23:23:33 +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
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
a09feb7386
option so operators can be executed with undo enabled (and redo).
2012-06-27 21:41:17 +00:00
15cb064e1b
style cleanup
2012-06-25 07:24:48 +00:00
f6e21881f5
change RNA_struct_find_function to accept a type rather then a PointerRNA, add a check duplicate functions are not defined.
2012-06-10 13:34:59 +00:00
2f60d9b0b9
fix for un-handled exception when entering in multiple values to a button, floats were not correctly checked for.
2012-06-09 16:45:42 +00:00
ed7dbbdfe9
fix for buffer overrun on windows by kjym3 on IRC.
2012-06-07 09:05:51 +00:00
1931aac1f7
style cleanup: (indentation)
2012-06-06 14:48:39 +00:00
5189356d58
style cleanup
2012-06-04 20:11:09 +00:00
46f1671c07
missing from previous commit
2012-05-27 21:56:19 +00:00
032d83ecc4
style cleanup: defines with braces
2012-05-27 20:13:59 +00:00
352cd241a3
fix [ #31597 ] Operator Preset: Python Warning whenever a preset is executed (seen on Windows)
2012-05-25 14:08:50 +00:00
dab1d8e487
style cleanup
2012-05-22 22:03:41 +00:00
3896ad4cbb
code cleanup: spelling
2012-05-20 21:23:26 +00:00
2d2d36fe3b
code cleanup:
...
- style - multi-line ifs move braces onto new lines.
- iterators - convert some to macros, other split up and move brace.
2012-05-20 19:49:27 +00:00
dd7229aee0
Added 'LIBRARY_EDITABLE' flag to bpy.props.*
...
Rationale: custom props on linked objects are editable through ops and the console but the UI code calls RNA_property_editable() which returns false if (id->lib && !(prop->flag & PROP_LIB_EXCEPTION))
Setting the 'LIBRARY_EDITABLE' flag allows UI templates to change these props (but the changes aren't saved!) for things like indices into CollectionProperties which live on the linked object
2012-05-19 21:22:01 +00:00
af3e348430
code cleanup: use TRUE/FALSE rather then 1/0 for better readability, also replace do prefix with do_ for bool vars.
2012-05-19 13:28:19 +00:00
181f3670c9
patch [ #31507 ] site not automatically imported when using external python package
...
made some modificatons to normal python startup also.
2012-05-18 10:19:49 +00:00
c0bd076bfd
style cleanup: and add missing files to cmake
2012-05-17 23:12:15 +00:00
ed33320e3f
Code cleanup: simplify standard GHash creation.
...
Added four new functions as shortcuts to creating GHashes that use the
standard ptr/str/int/pair hash and compare functions.
GHash *BLI_ghash_ptr_new(const char *info);
GHash *BLI_ghash_str_new(const char *info);
GHash *BLI_ghash_int_new(const char *info);
GHash *BLI_ghash_pair_new(const char *info);
Replaced almost all occurrences of BLI_ghash_new() with one of the
above functions.
2012-05-16 00:51:36 +00:00
7b31c3c198
Fix cosmetic typos
...
Patch provided by Matteo F. Vescovi, thanks!
2012-05-15 16:11:04 +00:00