Blender Git Loki

Blenderin Git "master"-kehityshaaran kommitit.

Page: 3720 / 5574

February 23, 2012, 07:21 (GMT)
Code cleanup: replace some common CCG operations with functions.

The new functions are ccg_gridsize, ccg_edgesize, ccg_spacing, and
ccg_edgebase. These target most of the left-shift operations in the
code.
February 23, 2012, 05:20 (GMT)
bmesh py api, new submodules
* bmesh.types, just allows access to BMVert, BMEdge etc.
* bmesh.utils, so far only added edge_split() function, this module will give access to mesh editing functions.
February 23, 2012, 05:17 (GMT)
swap arg order for BM_edge_split(), makes sense to have edge as first
arg.
February 23, 2012, 04:26 (GMT)
- swap arg order for BM_face_copy() boolean options.
- use edge example for BM_face_split().
February 23, 2012, 04:19 (GMT)
bmesh py api, more wrapped funcs:
* BMFace.copy(verts=True, faces=Trur)
* BMEdge.other_vert(vert)
February 23, 2012, 03:39 (GMT)
bmesh py api: functions for getting the area/angle/center of BMesh elements.
February 23, 2012, 02:36 (GMT)
code cleanup: dont set the namespace in STR_String.h - 'using namespace std', since this is included in many places.

February 23, 2012, 02:23 (GMT)
code style cleanup, no functional changes.
February 23, 2012, 02:17 (GMT)
style cleanup for blenkernel, no functional changes.
February 22, 2012, 23:57 (GMT)
Move PBVH bitmap to separate header in blenlib.

The implementation was also changed in a couple ways: use unsigned
integers as its base type rather than unsigned chars, and uses macros
rather than functions. (These could be changed to inline functions.)

Currently it is still only used during PBVH building, but now it's
accessible elsewhere.
February 22, 2012, 23:30 (GMT)
Code cleanup: de-duplicate code in GPU_build_grid_buffers() with a macro.
February 22, 2012, 23:13 (GMT)
Code cleanup: split up some long functions in sculpt_undo.c.

Should be no functional changes.
February 22, 2012, 22:48 (GMT)
Code cleanup: don't use GHash for GPU_build_mesh_buffers().

At the point where GPU_build_mesh_buffers is called, the
face_vert_indices map has already been built; it contains the same
data in an easier-to-access format.
February 22, 2012, 22:41 (GMT)
Code cleanup: remove unused 'skip' field from PBVH iterator.
February 22, 2012, 22:37 (GMT)
Code cleanup: move the PBVH iterator's initialization into a function.

Should be no functional changes, just shortens the amount of code
living in the macro.
February 22, 2012, 20:31 (GMT)
fix scons compilation, hopefully for all platforms that have a problem.
February 22, 2012, 20:06 (GMT)
Armature pose evaluation: more factorization of code.

Now constraints' space conversion code also uses generic armature_mat_(pose_to_bone/bone_to_pose). Previous own function (constraint_pchan_diff_mat) was somewhat inconsistent too with Hinge/NoScale/LocalLocation options...
As with previous similar changes, this might break some old rigs, in very specific cases (when constraint-evaluating an hinge/noscale/local_location bone in local space).

In the same part of code, removed unnecessary matrices copying, mult_m4_m4m4 can take the same matrix as input and output, nowadays...

Also found a bug-generator weakness in those armature_mat_ functions (if both input and output mat where the same, result was wrong, now systematically copying input mat, as done in LIB's matrix funcs).

Finally, factorized offset bone matrix generation into its own small function too, as it is used in two different places in armature.c (pchan_to_pose_mat itself, and restpose's where_is_armature_bone).

Note: I think all parts of blender's code related to that topic have now been tackled, but yet have to check BGE, it�??s probably using that stuff too, one way or the other...
February 22, 2012, 18:57 (GMT)
Fix blenderplayer linking with recent additions to bmesh python. We should really start building with player on so that mistakes like this can be detected early.
February 22, 2012, 16:52 (GMT)
code cleanyp - no functional changes.
February 22, 2012, 16:21 (GMT)
More style edits (adding a space between statements and parenthesis, if (foo) blah;), to follow http://wiki.blender.org/index.php/User:Nazg-gul/CodeStyle proposition.
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021