8e46cf637c
tweak mempool loop comparisons when we know there is no chance for skipping past the last value.
...
also correct typo.
2013-08-31 02:12:31 +00:00
11c988ba00
Simplify line/plane intersection, add line_plane_factor_v3().
...
Remove no_flip option for isect_line_plane_v3(), its quite specific and only used for ED_view3d_win_to_3d().
2013-08-31 02:06:23 +00:00
79f7a78637
fix [ #36528 ] crash when reinitializing bmesh from mesh
2013-08-27 00:39:51 +00:00
1679cd7f96
This commit adds optional parameters for pyfunc implementations of RNA API (i.e. callbacks, e.g. draw functions of panels, uiLists, or exec/poll/etc. of operators). Thanks to Brecht for he review!
...
Any parameter after the first flagged with PROP_PYFUNC_OPTIONAL will be considered as optional, hence the python code does not have to define/use it. This will ease API evolutions by avoiding to break existing code when adding non-essential new parameters.
Note: this will need some update to API doc generation, patch is ready, will have it reviewed by Campbell asap.
2013-08-26 21:11:52 +00:00
384b8aafbf
patch to add backkbacks for game engine start/end,
...
by sjoerd_de_vries
2013-08-23 15:45:18 +00:00
09ff49755f
math api edits - replace point-normal form for a plane with dist_to_plane_v3()
...
also correct python mathutils api, was missing vector checks.
2013-08-23 14:37:22 +00:00
9470754fd3
bmesh api cleanup, face creation args now accept an example face (as with vertex and edge),
...
also replace BM_face_create_quad_tri_v with BM_face_create_verts
2013-08-21 07:51:47 +00:00
8937a8b839
use BM_CREATE_NOP arg rather then zero, with pointer and bool args in either side in some cases it gets a bit confusing.
...
also correct edge-rotate where bool->flag conversion worked by accident.
2013-08-21 05:39:46 +00:00
57f8a252d6
fix own regression [ #36443 ] Vertex to UV index doesn't match with 2.68a
...
add BM_face_create_verts wrapper for BM_face_create which creates its own edge array.
2013-08-21 05:11:11 +00:00
38338a51c9
add is_finite_v# functions, use bool's
2013-08-20 09:34:52 +00:00
f3654ce6b6
fix incorrect docs [ #36518 ] Vector.rotate() does not return value as documented
2013-08-20 08:41:34 +00:00
880a86230f
bmesh_vert_separate: remove unused return value
2013-08-12 23:49:56 +00:00
4f29aeeff2
code cleanup: some structs were declaring data when only typedef's were intended, make local vars and functions static.
2013-08-07 03:44:05 +00:00
b8c3efc8c3
code cleanup: compiler warnings
2013-07-21 16:40:34 +00:00
7db1d6556d
code cleanup: add break statements in switch ()'s, (even at the last case).
2013-07-21 08:16:37 +00:00
a2492e0603
style cleanup: braces/indentation
2013-07-19 16:44:17 +00:00
7fec23ae0a
fix for problem with edge slide where it would stop shapekey modifier from being applied (because of added vertices),
...
now, instead of making hidden copies of faces, the faces are copied into a temp bmesh.
also remove a hash that was being created and not used (old code).
2013-07-11 04:24:36 +00:00
14ab39c5e0
minor improvements
...
- calc normals only check flag when needed.
- keymap, dont get name unless its needed.
- keymap, avoid property lookup.
- idprop debug print, include pointer, helpful for troubleshooting.
2013-07-09 00:13:17 +00:00
37d1984c53
edit on own commit r57801, don't check the size of dynamic arrays
2013-07-08 01:28:43 +00:00
418011907c
remove nan copyrights from code added since blender become opensource (copy paste errors), also remove BKE_script.h
2013-07-02 10:14:59 +00:00
46808dd22c
fix for python api bug: assigning the wrong size array to an RNA property wasn't checking the length and could crash, eg:
...
mesh.polygons[0].vertices = (10,)
2013-06-27 01:01:11 +00:00
8107c543ec
remove redundant casts
2013-06-27 00:37:42 +00:00
c0c9f5386b
fix [ #35507 ] BMesh module: Crash on to_mesh() if faces.layers.tex is used but no loops.layers.uv
2013-06-26 04:17:41 +00:00
423ee06625
use booleans for bpath api.
2013-06-24 03:06:32 +00:00
65047099b2
fix for pythons __dir__ returning registrable functions on class instances (which may not have the functions defined).
...
gave odd behavior of including members in __dir__ that couldn't getattr()
2013-06-13 11:35:25 +00:00
fa51f02be3
minor changes to the script auto-execution based on Brecht's suggestions.
2013-06-12 00:10:56 +00:00
31e74d00c1
fix [ #35691 ] Context Override replaces instead of overrides
2013-06-10 12:17:36 +00:00
412c043474
Python script auto-execution changes:
...
- script execution is off by default
- if a blend file attempts to execute a script
this shows a message in the header with the action
that was suppressed (script/driver/game-autostart) and 2 buttons to either reload the file trusted, or to ignore the message.
- the file selector will always default to use the trust setting in the user preferences,
but reloading an open file will keep using the current setting (whatever was set before or set on the command-line).
- added SCons setting WITH_BF_PYTHON_SECURITY, this sets the default state for the user prefereces not to trust blend files on load.
... this option was in CMake before, but always off, now its enabled by default for SCons and CMake, and forced on in CMake for now.
2013-06-10 00:42:16 +00:00
e7a487d1e9
code cleanup: group python reset functions in BPY_python_reset()
2013-06-09 23:31:53 +00:00
dfad9b0c09
fix [ #35555 ] Collada: export destroys mesh in some cases
...
add arguments to calculate normals when converting to bmesh:
BM_mesh_bm_from_me, DM_to_bmesh
This gives some speedup to undo (which didnt need to re-calculate vertex normals), and array modifier which doesnt need to calculate face normals at all
2013-06-02 23:20:49 +00:00
225c5fee6b
move BLO_sys_types.h -> BLI_sys_types.h (it had nothing todo with loading)
...
remove MEM_sys_types.h which was a duplicate.
2013-05-28 19:35:26 +00:00
13bde6645b
code cleanup: remove callbacks only added to wrap MEM_freeN
2013-05-21 08:45:10 +00:00
6de829cb7a
code cleanup: split scons includes onto multiple lines, reduce chance of include conflicts later on.
2013-05-20 18:42:28 +00:00
0fb5c9117f
no need to add own define for openmp.
2013-05-20 14:38:43 +00:00
19f11fc783
Cmake / Fluids:
...
* Possible fix for Fluid threads UI not being shown with cmake builds.
2013-05-20 14:00:19 +00:00
88d1067f58
code cleanup: use BM_elem_flag_test rather then accessing 'ele->head.hflag'
2013-05-17 12:43:58 +00:00
04a9c0e28a
bump mathutils callback slot size.
2013-05-17 07:10:40 +00:00
71775dc2a4
Fix another cases where painting long brush strokes with small radius was slowed
...
down, this time by the operator properties getting converted to a string for
display in the info window.
With 1000+ stroke points this can get slow, and takes up too much space anyway,
so now it's (somewhat arbitrarily) limited to printing only 10 points.
2013-05-15 14:37:01 +00:00
6fc51bf20e
Moved main part of bpy.app.translations doc out of C code, as suggested by Campell, thx.
2013-05-14 18:16:37 +00:00
761850f377
API doc for bpy.app.translations should look better now.
2013-05-14 15:33:59 +00:00
c838b2d2a7
bmesh api: add 'is_boundary' attribute to verts.
2013-05-14 02:56:24 +00:00
3e1e76a2c1
Fix #35289 : UV layout export to image was extremely slow for large meshes. This
...
was due to slow implementation of slice operation for things like mesh uv data.
Made that faster now for cases where the internal storage is an array.
2013-05-10 22:05:47 +00:00
c6702a3b91
use BM_face_create_ngon_verts for python api face creation
...
(avoid doing it inline).
2013-05-08 12:59:46 +00:00
a9fb183901
rename BLI_ghashIterator_notDone() -> BLI_ghashIterator_done()
...
was renamed fairly recently but other similar iterators not negated
like this, would prefer to keep it as it was
2013-05-08 12:58:11 +00:00
0ffde4fae3
expose bmesh volume calculation to python api (use for print toolbox addon).
2013-05-07 00:00:32 +00:00
998b9241be
correct bmesh api crossref and update uv-operator template.
2013-05-05 05:54:29 +00:00
4a8663d66e
A bit more clear error message...
2013-05-02 14:03:56 +00:00
edd6327455
remove direct freestyle data access from bmesh, was crashing and this should really only be done via customdata layer support.
2013-04-30 22:27:52 +00:00
1edf56e7a5
fix [ #35150 ] Crash when bmesh operation called from within a Panel draw()
...
accessing a bmesh from python would reallocate all customdata layers.
add an assert to BM_data_layer_free(), when its called unnecessarily since its reallocating all layers.
2013-04-29 20:21:19 +00:00
674d82d783
Fluid UI:
...
* Display Simulation threads only, when built with OpenMP.
2013-04-28 16:52:51 +00:00