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
7deb8d8a26
code cleanup: spelling
2012-10-20 20:36:51 +00:00
c56a911cd9
style cleanup: comments
2012-10-20 20:20:02 +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
92862f96dc
code cleanup: use float sizes for function args.
2012-10-15 23:11:59 +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
8437980b81
optimization for PyObject -> ID-property sequence conversion, use PySequence_Fast.
2012-10-12 03:59:50 +00:00
f97dfdf227
quiet clang static checker warning by returning an error for invalid situation getting an IDProp mapping from a PyObject.
...
also print the path installed to when installing an addon.
2012-10-12 03:24:47 +00:00
40186a8c11
remove BLI_noise from BLI_blenlib.h, not that many files need this.
2012-10-12 00:18:32 +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
7614428c09
style cleanup: pep8
2012-10-08 10:03:01 +00:00
b26ccf0aff
toggle cut through in the knife tool now refreshes (before you had to wave the mouse about to see the result).
...
also remove print from last commit.
2012-10-06 03:34:52 +00:00
6a164c7f72
fix [ #32779 ] Bmesh module: assigning to bm.select_mode crashes Blender if bmesh is empty
...
was missing set typecheck
2012-10-06 03:33:11 +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
35ae7dae9e
fix for own bug in bmesh api, setting a byte string customdata layer assumed the input data was 256 length, assigning smaller values would read past the buffer.
2012-10-01 15:39:29 +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
c9c76a9a68
add compiler hints that failing to create a bmesh face is unlikely.
2012-10-01 11:12:49 +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
aa49ca25d5
incorrect spelling in comments
2012-09-26 20:05:38 +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
a9f10b6bc2
style cleanup
2012-09-08 06:40:03 +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
3804b2d2ba
fix [ #31856 ] movieclips.load(filepath=None) or value crash Blender
...
workaround for python bug/inconsistency
2012-09-04 05:36:07 +00:00
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
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
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
ee96cde864
style cleanup: whitespace
2012-08-26 11:35:43 +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
b96c622015
style cleanup
2012-08-11 22:12:32 +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
9ff4fa6671
style cleanup
2012-08-04 12:30:16 +00:00
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
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