Campbell Barton
0e494b74c4
style cleanup
2012-10-26 04:14:10 +00:00
Campbell Barton
f70d2c65d8
rename api functions...
...
- minf, maxf, mini, maxi --> min_ff, max_ff, min_ii, max_ii
2012-10-23 13:28:22 +00:00
Campbell Barton
23baf8c9c3
code cleanup: check defgroup_name_index() return value != -1, rather then checking >= 0.
...
also remove unused bmesh decimator code.
2012-10-22 17:19:05 +00:00
Campbell Barton
f3ece5a108
style cleanup: trailing tabs & expand some non prefix tabs into spaces.
2012-10-21 05:46:41 +00:00
Campbell Barton
aa49ca25d5
incorrect spelling in comments
2012-09-26 20:05:38 +00:00
Campbell Barton
15ce5f95b3
joining mesh objects now keeps relative key setting of each keyblock. also joining absolute shapekeys now sorts by time.
2012-09-19 12:11:28 +00:00
Campbell Barton
0d5d2146eb
code cleanup: make shape key api names consistent with our new convention.
2012-09-19 10:12:07 +00:00
Campbell Barton
10d18e5b5f
code cleanup: use min/max inline functions rather than macros & simplify loop
2012-09-11 09:39:37 +00:00
Campbell Barton
9e742ffc2b
style cleanup: also correct some doxy comments
2012-08-18 13:07:48 +00:00
Campbell Barton
b96c622015
style cleanup
2012-08-11 22:12:32 +00:00
Campbell Barton
1597ad9377
style cleanup
2012-07-01 09:54:44 +00:00
Campbell Barton
85923aff28
code cleanup: key/interpolation
2012-05-22 13:59:58 +00:00
Campbell Barton
14e4ad9302
fix for fix - possible on second loop to use freed memory still.
2012-05-21 10:13:43 +00:00
Campbell Barton
23d628a54f
fix for unlikely but possible use of uninitialized pointers.
2012-05-21 10:11:51 +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
Campbell Barton
c8ebfe1d12
code cleanup:
...
- use bmesh iterator macros in more places
- rename scanfill variables (were using same names as mesh faces/verts which was confusing)
2012-05-13 14:47:53 +00:00
Campbell Barton
a731e13043
code cleanup: function naming, use BKE_*type* prefix.
2012-05-05 14:03:12 +00:00
Sergey Sharybin
f88cfd9168
Code and style cleanup in own modules in BKE and also mball module
...
- Make sure functions are named in way BKE_<object>_<action> (same way as RNA callbacks)
- Make functions which are used by mball.c only static and remove their prototypes
from public header file.
Further cleanup is coming.
2012-04-28 16:49:00 +00:00
Campbell Barton
475ecbb0ce
remove BM_ITER, BM_ITER_INDEX macros, use ELEM or MESH variants only (the maceros had unused args in both cases).
2012-04-19 13:47:58 +00:00
Campbell Barton
75b869e428
style cleanup: BM_ITER / BM_ITER_INDEX / BMO_ITER
2012-04-19 11:44:12 +00:00
Campbell Barton
969a079aeb
code cleanup: comment (almost) all members of KeyBlock & Key.
2012-04-14 03:58:08 +00:00
Campbell Barton
289f627f63
code cleanup: when extending name length Key.elemstr was incorrectly extended to 64 chars, added comment and set back to original length.
2012-04-14 02:48:56 +00:00
Campbell Barton
c8a1ef78c0
style cleanup: key.c
2012-04-14 02:32:32 +00:00
Campbell Barton
405c9d9a95
code cleanup: remove unused KeyBlock.adrcode
2012-04-12 11:50:43 +00:00
Campbell Barton
4c9486f13d
change add_keyblock() not to sort keyblocks by time since this can be a problem when using the function in lower level parts of the code, instead add add_keyblock_ctime() which sets time and sorts on absolute shape keys.
2012-04-12 11:05:16 +00:00
Campbell Barton
f4ccee2785
adding shape key blocks to absolute shape keys would not set the position (which is odd since its the only time they are used).
...
also re-sort the shape keys after adding them in for absolute keyblocks.
2012-04-05 05:51:26 +00:00
Campbell Barton
8cddb18da0
- fix error with conflusing key/keyblock in the shape template UI - absolute keyblocks would always be greyed out.
...
- fix mistake setting wrong variable in unlikely case of curve having no bezier or point array set.
2012-04-05 05:25:20 +00:00
Campbell Barton
db562488d6
report [ #30814 ] Absolute Shape Keys not working in 2.6
...
This report points out thet absolute shape keys are unusable.
The problem is there was no way to adjust the play time of a shape key (all absolte shape keys would start at frame zero with no way to change the speed).
Added an 'eval_time' property to the key block that works like the curve path evaluation time, so the time in the keyblock can be controlled.
2012-04-05 05:05:18 +00:00
Campbell Barton
6faeac9fe2
style cleanup: add braces around checks - 'if ELEM() {...}', confuses some parsers that done expand macros.
2012-03-25 22:35:18 +00:00
Campbell Barton
b8a71efeba
style cleanup: follow style guide for/with/if spacing
2012-03-24 07:52:14 +00:00
Campbell Barton
69e6894b15
style cleanup: follow style guide for formatting of if/for/while loops, and else if's
2012-03-24 06:18:31 +00:00
Campbell Barton
f6ae27daef
style cleanup - comment spelling + translate some dutch.
2012-03-04 04:35:12 +00:00
Campbell Barton
95670e03a0
style cleanup / comment formatting for bli/bke/bmesh
2012-03-03 20:19:11 +00:00
Campbell Barton
a368e6771a
- remove some unused editmesh functions.
...
- copy & rename EditMesh stricts for use with scanfill (remove unused members)
2012-02-19 22:17:30 +00:00
Campbell Barton
b6dcdb065d
code refactor, function renaming for bmesh.
...
These changes are to make the bmesh api more consistent and easier to learn, grouping similar functions which is convenient for autocomplete.
This uses similar convention to RNA.
* use face/loop/edge/vert as a prefix for functions.
* use 'elem' as a prefix too for functions that can take any type with a BMHeader.
* changed from camel case to underscore separated (like RNA).
2012-02-12 10:51:45 +00:00
Campbell Barton
8c6120e5ff
fix for crash with mesh undo with shape keys
...
'undomesh' was also used in confusing way (relied on mesh being first member).
2012-01-23 23:53:21 +00:00
Campbell Barton
0198df7956
svn merge ^/trunk/blender -r43554:43564
2012-01-20 15:34:40 +00:00
Campbell Barton
1726853226
comment some dead assibnment and set dummy values for image profile conversion in case of invalid input.
2012-01-20 15:18:57 +00:00
Campbell Barton
7508540c53
svn merge -r41575:41602 ^/trunk/blender
2011-11-07 07:01:24 +00:00
Campbell Barton
bb8fe0bf4a
minor edits
...
- remove unneeded type check from convert grease pencil operator.
- correct some error prints & use __func__.
- make copy_libblock take an ID* argument rather than void*.
2011-11-07 04:36:37 +00:00
Campbell Barton
e936c78251
svn merge ^/trunk/blender -r41503:41575
2011-11-06 10:38:44 +00:00
Joshua Leung
723484ec06
Removed old "bsystem_time()" function, which by now is just a
...
duplicate of BKE_curframe() which just takes two extra args.
For the few calls in the physics engine where CFRA+1 instead of CFRA
was being used, I've added a new BKE_nextframe() call, which will
calculate for CFRA+1 instead of CFRA in much the same way that
bsystem_time() would end up doing things (which means including
subframe steps).
2011-11-06 06:08:18 +00:00
Campbell Barton
9aa901cccc
svn merge -r41422:41431 ^/trunk/blender
2011-11-01 09:05:38 +00:00
Campbell Barton
bcdcbb65c1
macro to check if an object type supports vgroups
2011-11-01 06:45:36 +00:00
Campbell Barton
0701982933
svn merge -r41329:41335 ^/trunk/blender
2011-10-28 12:57:37 +00:00
Campbell Barton
0d63bb005f
replace VECCOPY and QUATCOPY with inline funcs.
2011-10-28 12:40:15 +00:00
Campbell Barton
75e570b2b7
svn merge -r41287:41310 ^/trunk/blender note, mirror modifier had slow, per vertex name flipping, replaced with flip_map from trunk
2011-10-27 09:42:03 +00:00
Campbell Barton
f7d5cea669
use path remapping for all make local functions, patch from Alex Fraser with changes.
2011-10-27 05:34:39 +00:00
Campbell Barton
15e6d6cd75
svn merge ^/trunk/blender -r41226:41227 .
2011-10-24 12:43:08 +00:00
Campbell Barton
77a7ec7c61
svn merge ^/trunk/blender -r41150:41175
2011-10-24 05:00:53 +00:00