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
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
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
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
Campbell Barton
a09feb7386
option so operators can be executed with undo enabled (and redo).
2012-06-27 21:41:17 +00:00
Campbell Barton
7518654a51
add access to dissolve_limit from python.
2012-06-27 14:01:58 +00:00
Campbell Barton
78ae6ac2a5
utility function to get the points inside a list of planes.
2012-06-27 09:51:22 +00:00
Campbell Barton
3e305c1018
bmesh.ops module for bmesh operator access, only remove_doubles and convex_hull at the moment.
2012-06-26 21:40:01 +00:00
Campbell Barton
200584e5c6
fix for a handful of memory leaks relating to parsing and allocating arbitrary sized vectors from python args.
...
Vector.dot() was always leaking memory, and would crash if args sizes didnt match.
These errors were introduced with n-dimensional vector support.
also fixed an error with bmesh py api allocation.
2012-06-26 16:58:58 +00:00
Campbell Barton
e32c467713
mathutils.Vector(kw=value) wasn't raising an error as it should.
2012-06-26 14:49:49 +00:00
Campbell Barton
15cb064e1b
style cleanup
2012-06-25 07:24:48 +00:00
Campbell Barton
54156e2b82
option to disable feather, since its so slow - for interactively editing masks its useful to be able to disable.
...
also rename RNA to 'use_antialiasing'
2012-06-21 12:27:57 +00:00
Mitchell Stokes
d8e2c475a0
Fix for [ #31396 ] "bge.logic.LibLoad fails to import text blocks" reported by Leonard Ritter.
...
Blender's import function check's the Text datablocks in main for additional modules for importing. However, libloaded scenes were 1) not loading Text datablocks and 2) not letting bpy know about them. Text datablocks are now loaded if a Scene is loaded and bpy can now looking through extra Mains to find additional modules.
2012-06-21 05:41:06 +00:00
Sergey Sharybin
fc5df9d634
Reverting changes made in r48030 by Campbell's request
2012-06-18 13:46:57 +00:00
Sergey Sharybin
35b3736b16
Fix #31856 : movieclips.load(filepath=None) or value crash Blender
...
Disallow running PyUnicode_EncodeFSDefault for None type which seems
to be an issue on Windows.
2012-06-18 12:34:19 +00:00
Campbell Barton
f5f25b81e8
style cleanup:
...
also fix for building ghost test and fix double free in one of the tests
2012-06-17 09:58:26 +00:00
Bastien Montagne
cf0d350b51
Fixing first part of [ #31760 ] Assignments not working properly for Object.dimensions
...
Problem was in fact that non-linear-contiguous axis assignement was broken (i.e. location.xy would work as expected, but location.xz would only affect .x part)... Now all possibilities should work fine.
Did not try to fix the problem specific to obj.dimension (when assigning multiple times to this array, only the last one is taken into account - in fact, a simple print() shows that assigning to dimension is not taken into account immediately), not sure whether this is normal behavior, or if we need a specific "update" of some kind for this prop?
2012-06-11 18:58:34 +00:00
Campbell Barton
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
Campbell Barton
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
Campbell Barton
56c5c63f57
code cleanup: doxy comment filename corrections
2012-06-08 23:43:11 +00:00
Campbell Barton
ed7dbbdfe9
fix for buffer overrun on windows by kjym3 on IRC.
2012-06-07 09:05:51 +00:00
Campbell Barton
1931aac1f7
style cleanup: (indentation)
2012-06-06 14:48:39 +00:00
Sergey Sharybin
5caeeec1fe
Corrected documentation for intersect_point_quad_2d to match exactly how
...
it works in C side: only convex quads without singularities gives predictable
results.
2012-06-06 08:08:54 +00:00
Campbell Barton
6cff0b71a7
style cleanup
2012-06-05 21:54:21 +00:00
Campbell Barton
5189356d58
style cleanup
2012-06-04 20:11:09 +00:00
Benoit Bolsee
dfc19a1ff7
BGE patch #28476 : Character object physics type
...
===============================================
This patch adds a new "Character" BGE physics type which uses Bullet's btKinematicCharacter for simulation instead of full-blown dynamics. It is appropiate for (player-controlled) characters, for which the other physics types often result unexpected results (bouncing off walls, sliding etc.) and for which simple kinematics offers much more precision.
"Character" can be chosen like any other physics type in the "Physics" section of the properties window. Current settings for tweaking are "Step Height" (to make the object automatically climb small steps if it collides with them), "Fall Speed" (the maximum speed that the object can have when falling) and "Jump Speed", which is currently not used.
See http://projects.blender.org/tracker/?func=detail&atid=127&aid=28476&group_id=9
for sample blends and a discussion on the patch: how to use it and what influences the behavior of the character object.
Known problem: there is a crash if the "compound" option is set in the physics panel of the Character object.
2012-05-28 21:36:29 +00:00
Campbell Barton
46f1671c07
missing from previous commit
2012-05-27 21:56:19 +00:00
Campbell Barton
032d83ecc4
style cleanup: defines with braces
2012-05-27 20:13:59 +00:00
Campbell Barton
63788b47d6
add vector versions of hsv_to_rgb, rgb_to_hsv & rgb_to_hsv_compat
2012-05-26 11:01:01 +00:00
Gaia Clary
352cd241a3
fix [ #31597 ] Operator Preset: Python Warning whenever a preset is executed (seen on Windows)
2012-05-25 14:08:50 +00:00
Campbell Barton
dab1d8e487
style cleanup
2012-05-22 22:03:41 +00:00
Campbell Barton
3fc3c9f3b4
style cleanup: relating to skin modifier
2012-05-22 16:09:31 +00:00
Andrew Hale
c63602286c
Fix for customdata layer copying. Issue was caused by mixing up of destination and source in copy function. Also fixed an error in Py API, check to see if layers were different should be check to see if they're the same.
2012-05-22 12:03:56 +00:00
Campbell Barton
ea11bc980a
debugging check for bmesh (commented since its very slow), but useful for debugging some scripts.
2012-05-21 12:30:06 +00:00
Campbell Barton
65b2385448
py api integration: __import__(... , level=0)
...
default changed to work with python3.3
2012-05-21 07:00:23 +00:00
Campbell Barton
3896ad4cbb
code cleanup: spelling
2012-05-20 21:23:26 +00:00
Campbell Barton
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
Andrew Hale
518ff6995d
BMesh Py API Fix: hide attribute of BMesh elements was returning the select flag. Fixed for all elements including loops, although this is commented out anyway. Reported by Crouch in IRC.
2012-05-20 12:52:46 +00:00