Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-03-03 20:31:46 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-03 20:31:46 +0400
commita2c182e9233333fc3b8ff40d352113ec95e7e30c (patch)
tree37a9e08f4e6c4bf794aa0c8c15af875299db4a1b /source/blender/editors/util
parent86cec98f9e1523ed41b67ef998174289dbae9b83 (diff)
style cleanup - use aligned * prefixed blocks for descriptive comments (was already used a lot and part of proposed style guide).
Diffstat (limited to 'source/blender/editors/util')
-rw-r--r--source/blender/editors/util/crazyspace.c10
-rw-r--r--source/blender/editors/util/ed_util.c4
-rw-r--r--source/blender/editors/util/editmode_undo.c36
3 files changed, 24 insertions, 26 deletions
diff --git a/source/blender/editors/util/crazyspace.c b/source/blender/editors/util/crazyspace.c
index 5ead0959d5c..ee32c04a33c 100644
--- a/source/blender/editors/util/crazyspace.c
+++ b/source/blender/editors/util/crazyspace.c
@@ -80,7 +80,7 @@ static void make_vertexcos__mapFunc(void *userData, int index, float *co, float
vec+= 3*index;
if(!mappedData->flags[index]) {
/* we need coord from prototype vertex, not it clones or images,
- suppose they stored in the beginning of vertex array stored in DM */
+ * suppose they stored in the beginning of vertex array stored in DM */
copy_v3_v3(vec, co);
mappedData->flags[index]= 1;
}
@@ -334,8 +334,8 @@ int editbmesh_get_first_deform_matrices(Scene *scene, Object *ob, BMEditMesh *em
md = modifiers_getVirtualModifierList(ob);
/* compute the deformation matrices and coordinates for the first
- modifiers with on cage editing that are enabled and support computing
- deform matrices */
+ * modifiers with on cage editing that are enabled and support computing
+ * deform matrices */
for(i = 0; md && i <= cageIndex; i++, md = md->next) {
ModifierTypeInfo *mti = modifierType_getInfo(md->type);
@@ -436,7 +436,7 @@ void crazyspace_build_sculpt(Scene *scene, Object *ob, float (**deformmats)[3][3
if(totleft) {
/* there are deformation modifier which doesn't support deformation matrices
- calculation. Need additional crazyspace correction */
+ * calculation. Need additional crazyspace correction */
float (*deformedVerts)[3]= *deformcos;
float (*origVerts)[3]= MEM_dupallocN(deformedVerts);
@@ -452,7 +452,7 @@ void crazyspace_build_sculpt(Scene *scene, Object *ob, float (**deformmats)[3][3
if(mti->type==eModifierTypeType_OnlyDeform) {
/* skip leading modifiers which have been already
- handled in sculpt_get_first_deform_matrices */
+ * handled in sculpt_get_first_deform_matrices */
if(mti->deformMatrices && !deformed)
continue;
diff --git a/source/blender/editors/util/ed_util.c b/source/blender/editors/util/ed_util.c
index 61b1dece957..15dced2f448 100644
--- a/source/blender/editors/util/ed_util.c
+++ b/source/blender/editors/util/ed_util.c
@@ -73,8 +73,8 @@ void ED_editors_init(bContext *C)
ID *data;
/* toggle on modes for objects that were saved with these enabled. for
- e.g. linked objects we have to ensure that they are actually the
- active object in this scene. */
+ * e.g. linked objects we have to ensure that they are actually the
+ * active object in this scene. */
for(ob=bmain->object.first; ob; ob=ob->id.next) {
int mode= ob->mode;
diff --git a/source/blender/editors/util/editmode_undo.c b/source/blender/editors/util/editmode_undo.c
index 4776cf0af53..a06dcb10200 100644
--- a/source/blender/editors/util/editmode_undo.c
+++ b/source/blender/editors/util/editmode_undo.c
@@ -59,25 +59,23 @@
/* ***************** generic editmode undo system ********************* */
/*
+ * Add this in your local code:
+ *
+ * void undo_editmode_push(bContext *C, const char *name,
+ * void * (*getdata)(bContext *C), // use context to retrieve current editdata
+ * void (*freedata)(void *), // pointer to function freeing data
+ * void (*to_editmode)(void *, void *), // data to editmode conversion
+ * void * (*from_editmode)(void *)) // editmode to data conversion
+ * int (*validate_undo)(void *, void *)) // check if undo data is still valid
+ *
+ *
+ * Further exported for UI is:
+ *
+ * void undo_editmode_step(bContext *C, int step); // undo and redo
+ * void undo_editmode_clear(void) // free & clear all data
+ * void undo_editmode_menu(void) // history menu
+ */
-Add this in your local code:
-
-void undo_editmode_push(bContext *C, const char *name,
- void * (*getdata)(bContext *C), // use context to retrieve current editdata
- void (*freedata)(void *), // pointer to function freeing data
- void (*to_editmode)(void *, void *), // data to editmode conversion
- void * (*from_editmode)(void *)) // editmode to data conversion
- int (*validate_undo)(void *, void *)) // check if undo data is still valid
-
-
-Further exported for UI is:
-
-void undo_editmode_step(bContext *C, int step); // undo and redo
-void undo_editmode_clear(void) // free & clear all data
-void undo_editmode_menu(void) // history menu
-
-
-*/
/* ********************************************************************* */
/* ****** XXX ***** */
@@ -129,7 +127,7 @@ void undo_editmode_push(bContext *C, const char *name,
uintptr_t memused, totmem, maxmem;
/* at first here was code to prevent an "original" key to be insterted twice
- this was giving conflicts for example when mesh changed due to keys or apply */
+ * this was giving conflicts for example when mesh changed due to keys or apply */
/* remove all undos after (also when curundo==NULL) */
while(undobase.last != curundo) {