Campbell Barton
00b39c4e5b
code cleanup: more confusion with 0/NULL/false
2013-08-07 03:55:21 +00:00
Sergey Sharybin
61c9c82b62
Use malloc in cases when data is getting overwriten after allocation.
2013-07-30 18:49:40 +00:00
Campbell Barton
f4609acedc
optimization: avoid memcpy with shake key vertex array.
2013-07-19 10:40:20 +00:00
Campbell Barton
64968e3618
patch [ #35830 ] Add Catmull-Rom spline as an option for lattice deformer
2013-06-25 10:49:20 +00:00
Campbell Barton
083115c5e7
bmesh optimization: use offsets for deform-vert lookups to avoid customdata layer lookups within loops.
2013-05-27 12:42:48 +00:00
Ton Roosendaal
e2f58d817a
Bug fix, own collection.
...
Shapekey drivers were executed for every call to derivedmesh, which shouldn't happen.
It now only runs on the object_update() function, once for every depsgraph change.
Error was found while testing preview render in viewport. On each render, the
animsys sent a 'changed data' because of the shapekey drivers being called,
causing eternal re-render loops (without showing anything).
2013-05-17 13:15:43 +00:00
Thomas Dinges
c1f408c058
Partial revert of own commits r56604 and r56603:
...
* Reverted the changes to code comments, as suggested by Campbell. It makes it more hard to follow.
* Only keep changes to actual UI messages.
2013-05-09 10:03:38 +00:00
Thomas Dinges
e0edac4952
UI naming consistency:
...
* ShapeKey -> Shape Key. Was called "Shape Key" in most places already.
Pointed out by Dalai, thanks!
2013-05-08 21:41:47 +00:00
Campbell Barton
6da961775f
code cleanup: rename BKE_tessmesh -> BKE_editmesh, rename EditDerivedBMesh.tc -> em. ('tc' is odd name which isn't used elsewhere).
2013-04-13 20:31:52 +00:00
Bastien Montagne
6926596174
More new data names translation (most cases should be covered now).
...
Also done a few cleanup here and there...
2013-03-25 08:29:06 +00:00
Campbell Barton
ddddb7bab1
code cleanup: favor braces when blocks have mixed brace use.
2013-03-09 03:46:30 +00:00
Campbell Barton
4df5b943ed
patch [ #34103 ] - listbase.patch, insertlinkbefore.patch
...
from Lawrence D'Oliveiro (ldo)
notes from tracker:
use bool for return type from BLI_remlink_safe, necessitating including BLI_utildefines.h in BLI_listbase.h
get rid of duplicate BLI_insertlink, use BLI_insertlinkafter instead.
A few places which were using BLI_insertlinkafter (actually BLI_insertlink), when it would be simpler to use BLI_insertlinkbefore instead.
2013-02-22 14:12:55 +00:00
Brecht Van Lommel
6cadd2bee3
Fix drivers and shape keys not handling subframes / frame mapping properly.
...
Change Scene.frame_set so that it ensures subframe in range [0,1[ as Blender
expects, otherwise some things like physics point cache lookups don't get
evaluated properly.
2013-01-27 16:45:00 +00:00
Campbell Barton
d1a211188b
property change reporting now uses the context again, rather then checking a dir() on context, hard-code common paths.
...
eg:
bpy.context.scene.render.resolution_x = 1921
bpy.context.object.data.use_auto_smooth = True
bpy.context.object.active_material.diffuse_intensity = 1
bpy.context.scene.world.exposure = 0.1
also remove duplicate GS() defines
2013-01-22 04:24:01 +00:00
Campbell Barton
d8d24bdebd
fix [ #33682 ] Animation not updated when the active shape index isnt set
2013-01-03 06:47:44 +00:00
Brecht Van Lommel
593ae2c8f4
Fix #33505 : various issues
...
* Motion blur with shutter time > 1 did result in the correct evaluation
of some modifiers because it set the subframe to values > 1, and some
places assume the current frame to be set to the integer coordinate and
the subframe to be a value between 0 and 1.
* Shape keys did not take subframe time offsets into account.
* Point density texture was using an current frame value that was never set.
2012-12-17 20:37:10 +00:00
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