1b32f258e7
ifdef'd gcc diagnostic pragma's to quiet msvc and others.
2012-11-23 10:03:50 +00:00
fae6c35ca7
code cleanup: quiet -Wdouble-promotion, disabled this warnings for a few files since its done throughout the code in some places.
2012-11-04 07:18:29 +00:00
89a454653e
code cleanup: replace macro with inline function for dynamic paint.
2012-11-04 06:21:09 +00:00
c64fa6a344
Smoke/Dynamic Paint: Allow use of fluid sim generated particles as emitter/brush.
2012-10-27 17:19:55 +00:00
c9dade4fe0
Big i18n commit: add "reports" from bmesh/readfile/tracking/dynapaint (and a few others), and another bunch of UI messages tweaks/fixes, as well as some BKE_report()<->BKE_reportf()...
2012-10-26 17:32:50 +00:00
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
f3ece5a108
style cleanup: trailing tabs & expand some non prefix tabs into spaces.
2012-10-21 05:46:41 +00:00
ed1cda9a6c
style cleanup
2012-09-30 06:12:47 +00:00
aa49ca25d5
incorrect spelling in comments
2012-09-26 20:05:38 +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
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
ed0489bb6e
style cleanup: also spelling
2012-08-24 23:22:34 +00:00
e9caa21830
fix own error in recent smoothview cleanup, also correct some cross references in bmesh docs.
2012-08-17 14:43:20 +00:00
f2074949e7
code cleanup: reduce calling sqrt() when distances are only calculated for comparison use dist_squared_to_line_segment_v2().
2012-08-14 08:44:35 +00:00
cfb7aee017
style cleanup
2012-07-07 22:51:57 +00:00
468ef74ed7
More spell and typo fixes (mostly visualise->visualize, grey->gray, normalise->normalize).
2012-07-03 19:09:07 +00:00
3ad9e0f3ec
Fix #31948 : dynamic paint substeps do not work for objects parented to armatures
2012-06-29 11:19:29 +00:00
15cb064e1b
style cleanup
2012-06-25 07:24:48 +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
ed679693c9
style cleanup: whitespace/indentation
2012-05-19 13:55:54 +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
5fe5a8c283
style cleanup: function definitions
2012-05-17 23:21:11 +00:00
9dd981a440
style cleanup: block comments
2012-05-16 23:37:23 +00:00
145289ad95
code cleanup: minor improvements to float/vector usage.
2012-05-12 22:13:38 +00:00
85fd56a3a8
code cleanup: some style and use math defines, also small speedup for dynamicpaint, dont call acosf twice.
2012-05-12 16:42:12 +00:00
53ee7908d6
style cleanup: whitespace
2012-05-12 16:11:34 +00:00
299ff91ea1
code cleanup: BKE_scene api naming.
...
also stop numpy from being found in /usr/include with cmake.
2012-05-05 14:33:36 +00:00
a731e13043
code cleanup: function naming, use BKE_*type* prefix.
2012-05-05 14:03:12 +00:00
112162e09e
code cleanup: header cleanup
2012-04-30 14:24:11 +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
950ed69297
code cleanup:
...
- replace inline face UV center calc.
- use const float[3] for mesh and uv functions.
- remove unused define
2012-04-28 08:29:20 +00:00
b340f930ec
style cleanup: changes to brace placement / newlines - for/while/if/switch
2012-04-28 06:31:57 +00:00
b8c4c54ff0
corrected more issues from [ #31069 ] Analyzing the Blender project with PVS-Studio
2012-04-23 16:29:13 +00:00
b56aabf815
style cleanup: multi-line if statements.
2012-04-21 15:11:03 +00:00
6701933f5c
style cleanup
2012-04-21 12:51:47 +00:00
3c1b5b5632
stule cleanup: edits for files which were recently cleaned up.
2012-04-02 22:26:00 +00:00
ca05219f3e
fix [ #30651 ] bpy.ops.object.mode_set(...) editmode removes faces.
...
problem was that BMesh had tessellation call when undo pushes were called.
if python called an operator with no undo push, tessfaces would not be created.
fix this by making it the responsibility of each editmesh operator to re-tessellate, as it is with notifiers and depsgraph.
added EDBM_update_generic() function to add notifier, tag for depsgraph update and optionally re-tessellate.
2012-03-27 00:01:35 +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
9751653410
Renaming CD_WEIGHT_MCOL/MLOOPCOL and their masks from WEIGHT to PREVIEW, as this layer is now also used for various preview tasks in Object mode.
...
“Cleanup” commit, no functional changes.
2012-03-22 08:41:50 +00:00
53b7078343
Fix [ #30234 ] Various problems with CD layers and tesselation, related to modifiers stack.
...
Should also fix [#30266 ], [#29451 ], and partly [#30316 ].
Here are the changes made by this commit:
* It adds a "dirty" flag to DerivedMesh struct (for now, only DM_DIRTY_TESS_CDLAYERS, but more might be added as needed).
* It adds a new func, DM_update_tessface_data, which assumes tessfaces themselves are valid, but updates tessellated customdata from their poly/loop counter parts.
* At end of modstack, when valid tessellated faces are present in finaldm , but the cdlayers dirty flag is set, call that function (instead of recomputing the whole tessellation).
* Edits to the codes concerned (UVProject, DynamicPaint, and Subsurf modifiers).
* Also add to subsurf dm generation code the creation of a CD_POLYINDEX layer (mandatory for DM_update_tessface_data to work well, and imho all tessellated dm should have one).
Note: some pieces of old code are just #if 0’ed, will clean them later.
2012-03-18 22:06:57 +00:00
4f19c1a995
spelling cleanup
2012-03-18 07:38:51 +00:00
91580c0929
swap BMLoopCol r/b color, requires subversion bump.
...
old mesh MCol 'r' was blue, 'b' was red, but theres no reason to keep this for bmesh with MLoopCol.
Loading old files works, saving legacy format works too.
What wont work is loading a file after this revision and loading it in an older revision since the bmesh merge.
(it wont crash but the blue and red will be swapped on vertex color layers).
2012-03-17 20:39:28 +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
1c91d62c7e
use BLI_path_cmp() rather then strcmp()
2012-03-08 02:19:41 +00:00
46045fbb09
style cleanup - braces & else / if's
2012-03-07 04:53:43 +00:00
f6ae27daef
style cleanup - comment spelling + translate some dutch.
2012-03-04 04:35:12 +00:00
95670e03a0
style cleanup / comment formatting for bli/bke/bmesh
2012-03-03 20:19:11 +00:00
ea13ec1699
Spelling Cleanup
2012-03-01 12:20:18 +00:00