a0ae47f06c
add some missing NULL checks, a few parts of the code used a pointer then checked it for NULL after.
...
also made it more clear that some areas assume the pointer isnt null (remove redundant NULL checks).
2012-09-11 02:18:27 +00:00
0b5a995cfd
code cleanup: rename G.rt to G.debug_value
2012-08-08 18:21:54 +00:00
4c2de5e0c7
fix some types and incorrect info
2012-07-26 17:41:09 +00:00
250cdd5e52
code cleanup: remove commented includes - mostly from 2.4x
2012-07-18 23:07:07 +00:00
32cf7fcdb1
code cleanup: spelling
2012-07-16 23:23:33 +00:00
3a0593cc3d
code cleanup: dont use function calls like dot_v3v3, pow and sqrt within macros which results in calling the function multiple times needlessly.
...
also added some comments.
2012-07-06 22:48:28 +00:00
a1091fbfa6
Fix #26876 : Soft Body ignores Goal on Lattice
...
Patch by Arno Mayrhofer (aka azrael3000) with only slight code style modifications, thanks!
2012-05-27 13:33:09 +00:00
da710b3e14
style cleanup: brace placement/newlines
2012-05-24 16:35:45 +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
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
9dd981a440
style cleanup: block comments
2012-05-16 23:37:23 +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
d20c129a9c
style cleanup: whitespace/operators
2012-05-09 09:24:15 +00:00
933b3166fc
style cleanup: guys - set your editors to tabs!
2012-05-01 17:51:03 +00:00
1b47e2678e
style cleanup: missed these from previous cleanup
2012-04-29 17:55:54 +00:00
343edf2722
style cleanup: function calls & whitespace.
2012-04-29 17:11:40 +00:00
e701f9b670
style cleanup: whitespace / commas
2012-04-29 15:47:02 +00:00
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
b340f930ec
style cleanup: changes to brace placement / newlines - for/while/if/switch
2012-04-28 06:31:57 +00:00
5d6f746c87
Patch by Jose Geraldo Brito
...
Tracker 31061
It cures the stiff quad option and does not seem to harm.
Nowever the stiff quads behave strange in a ngom mesh.
I can imagine that other parts in the sofybody module may be broken by the ngon structure. Well ngons and softbodies are not relly friends:
negon wants less edges softbodies would work better if more structural edges were possible
2012-04-27 11:49:09 +00:00
1615b46963
style cleanup
2012-04-21 13:37:26 +00:00
6701933f5c
style cleanup
2012-04-21 12:51:47 +00:00
5b88712ff9
move debug flag into its own global var (G.debug), split up debug options.
...
--debug
--debug-ffmpeg
--debug-python
--debug-events
--debug-wm
This makes debug output easier to read - event debug prints would flood output too much before.
For convenience:
--debug-all turns all debug flags on (works as --debug did before).
also removed some redundant whitespace in debug prints and prefix some prints with __func__ to give some context.
2012-03-31 00:59:17 +00:00
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
8e0493b290
Fix #30449 : sampled motion blur not working with softbody.
2012-03-19 17:22:01 +00:00
4f19c1a995
spelling cleanup
2012-03-18 07:38:51 +00:00
c21c58f44c
style cleanup, also remove unused externs.
2012-03-11 19:09:01 +00:00
89a963fb7f
style cleanup: comment blocks
2012-03-09 18:28:30 +00:00
4f7bdc59d3
style cleanup: spelling.
...
also remove large, duplicate comments from sunsky.h
2012-03-09 00:41:09 +00:00
95670e03a0
style cleanup / comment formatting for bli/bke/bmesh
2012-03-03 20:19:11 +00:00
9d49fa0e63
style cleanup - spelling corrections & update some incorrect comments.
2012-03-03 11:45:08 +00:00
7bbf4b7831
style cleanup
...
- spelling - turns out we had tessellation spelt wrong all over.
- use \directive for doxy (not @directive)
- remove BLI_sparsemap.h - was from bmesh merge IIRC but entire file commented and not used.
2012-03-02 16:05:54 +00:00
ea13ec1699
Spelling Cleanup
2012-03-01 12:20:18 +00:00
47c373c7a9
style cleanup (mostly whitespace)
2012-02-27 10:35:39 +00:00
53fece44cf
style cleanup for blenkernel, no functional changes.
2012-02-23 02:17:50 +00:00
e1dd245a1e
more keymap edits
...
- make sure defaults are not assumed (so reuse last settings doesnt
override)
- replace 0/1 for TRUE/FALSE defines.
2012-01-16 16:12:03 +00:00
8198880d44
Fix #29793 : Physics go crazy if frames get skipped
...
Calculate cloth and softbody only for single frame time deltas
(like it's already done for smoke)
2012-01-09 14:08:06 +00:00
0c7a25cd0e
patch [ #28993 ] wm_window_match_do(): Fix crash on null pointer dereference
...
from Ola Jeppsson (olajep)
also some cleanup edits
2011-11-15 16:38:48 +00:00
e84c0980a3
correct indentation and some whitespace edits (no functional changes)
2011-11-11 13:09:14 +00:00
094c9799f9
quiet -Wdouble-promotion warnings
2011-11-11 12:00:08 +00:00
85540d5aa7
more macro --> BLI math lib, mainly replace VECCOPY in render and blenkernel.
2011-11-06 16:38:21 +00:00
d8717d2628
more macro --> bli math lib replacements.
2011-11-06 15:39:20 +00:00
4a04f72069
remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-23 17:52:20 +00:00
6912e94d06
replace BLF's blf_utf8_next() with BLI_str_utf8_as_unicode_step(),
...
also fixed some spelling errors.
2011-10-21 01:33:06 +00:00
2bd9519e39
BLI_ghash.h was including BLI_blenlib.h, remove from ghash header and include in each file
2011-10-20 13:50:24 +00:00
61389bba41
fix spelling mistakes in comments (and in some python error messages), nothing to effect translations.
2011-10-17 06:39:13 +00:00
bc40f11093
header cleanup (no functional changes)
2011-10-10 09:38:02 +00:00
f65c72afaf
Commented and tagged some unused vars, added some var init (gcc warnings...).
...
Won’t go further, most other warnings are from GE or intern/extern lib code...
2011-09-29 15:28:22 +00:00
a5906de7c4
Fix #26962 : softbody collision doesn't respect subsurf+displace modifiers.
...
Softbody was still using a flag to determine if it should use the final or
deform derivedmesh, but this wans't exposed in the UI. Others systems use the
collision modifier, now softbody uses it also to get vertices and faces, but
with own collision code.
2011-07-08 13:22:58 +00:00
d02480cdaa
remove / comment unused code, patch by nico_ga on IRC with some edits.
2011-05-22 16:29:51 +00:00