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
path: root/source
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2008-10-05 16:06:55 +0400
committerJoshua Leung <aligorith@gmail.com>2008-10-05 16:06:55 +0400
commit333b7c3668d16f73e3f8e1c1d17a8b4e0f527419 (patch)
tree5e7210631dd479c0c6dbceef70c45ce44b616a05 /source
parent86560d6b3f4e499b1c811fd4287f6ff07896fef6 (diff)
* Grease Pencil - changed defaulted for sensitivity userprefs. Will overwrite old settings too (to keep users less confused about this).
* Removed some unneeded funcs (compiler warnings)
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/edit.c68
-rw-r--r--source/blender/src/editsound.c5
-rw-r--r--source/blender/src/usiblender.c7
3 files changed, 7 insertions, 73 deletions
diff --git a/source/blender/src/edit.c b/source/blender/src/edit.c
index 87bb6f9e94e..a80e7b6c360 100644
--- a/source/blender/src/edit.c
+++ b/source/blender/src/edit.c
@@ -138,8 +138,6 @@ extern void uvedit_selectionCB(short selecting, Object *editobj,
static void circle_selectCB(select_CBfunc func);
-/* local protos ---------------*/
-static void snap_curs_to_firstsel(void);
/* flag==2 only border, flag==3 cross+border
flag==5 cross + border + start&end frame
@@ -1548,72 +1546,6 @@ void snap_curs_to_active()
allqueue(REDRAWVIEW3D, 0);
}
-static void snap_curs_to_firstsel()
-{
- TransVert *tv;
- Base *base;
- float *curs, bmat[3][3], vec[3], min[3], max[3], centroid[3];
- int count;
-
- curs= give_cursor();
-
- count= 0;
- INIT_MINMAX(min, max);
- centroid[0]= centroid[1]= centroid[2]= 0.0;
-
- if(G.obedit) {
- tottrans=0;
-
- if ELEM6(G.obedit->type, OB_ARMATURE, OB_LATTICE, OB_MESH, OB_SURF, OB_CURVE, OB_MBALL)
- make_trans_verts(bmat[0], bmat[1], 0);
- if(tottrans==0) return;
-
- Mat3CpyMat4(bmat, G.obedit->obmat);
-
- tv= transvmain;
- VECCOPY(vec, tv->loc);
- /*Mat3MulVecfl(bmat, vec);
- VecAddf(vec, vec, G.obedit->obmat[3]);
- VecAddf(centroid, centroid, vec);
- DO_MINMAX(vec, min, max);*/
-
- if(G.vd->around==V3D_CENTROID) {
- VecMulf(vec, 1.0/(float)tottrans);
- VECCOPY(curs, vec);
- }
- else {
- curs[0]= vec[0];
- curs[1]= vec[1];
- curs[2]= vec[2];
- }
- MEM_freeN(transvmain);
- transvmain= 0;
- }
- else {
- base= (G.scene->base.first);
- while(base) {
- if(((base)->flag & SELECT) && ((base)->lay & G.vd->lay) ) {
- VECCOPY(vec, base->object->obmat[3]);
- VecAddf(centroid, centroid, vec);
- DO_MINMAX(vec, min, max);
- count++;
- }
- base= base->next;
- }
- if(count) {
- if(G.vd->around==V3D_CENTROID) {
- VecMulf(centroid, 1.0/(float)count);
- VECCOPY(curs, centroid);
- }
- else {
- curs[0]= (min[0]+max[0])/2;
- curs[1]= (min[1]+max[1])/2;
- curs[2]= (min[2]+max[2])/2;
- }
- }
- }
- allqueue(REDRAWVIEW3D, 0);
-}
void snap_to_center()
{
diff --git a/source/blender/src/editsound.c b/source/blender/src/editsound.c
index c6ecc8d5865..95b3a3d3021 100644
--- a/source/blender/src/editsound.c
+++ b/source/blender/src/editsound.c
@@ -95,7 +95,7 @@ static SND_SceneHandle ghSoundScene=NULL;
static SND_AudioDeviceInterfaceHandle ghAudioDeviceInterface=NULL;
/* que? why only here? because of the type define? */
-static bSound *sound_find_sound(char *id_name);
+//static bSound *sound_find_sound(char *id_name);
static void sound_read_wav_data(bSound * sound, PackedFile * pf);
void winqreadsoundspace(struct ScrArea *sa, void *spacedata, struct BWinEvent *evt);
/* void sound_stop_all_sounds(void); already in BIF_editsound.h */
@@ -1022,7 +1022,7 @@ void sound_play_sound(bSound *sound)
}
-
+#if 0
static bSound *sound_find_sound(char *id_name)
{
bSound *sound;
@@ -1039,6 +1039,7 @@ static bSound *sound_find_sound(char *id_name)
return sound;
}
+#endif
void sound_init_audio(void)
{
diff --git a/source/blender/src/usiblender.c b/source/blender/src/usiblender.c
index c4d22664b8e..7fdc6725964 100644
--- a/source/blender/src/usiblender.c
+++ b/source/blender/src/usiblender.c
@@ -504,10 +504,11 @@ static void init_userdef_file(void)
col = btheme->tv3d.vertex_select;
SETCOL(btheme->tseq.vertex_select, col[0], col[1], col[2], 255);
}
-
+ }
+ if ((G.main->versionfile < 247) || (G.main->versionfile == 247 && G.main->subversionfile <= 9)) {
/* define grease-pencil distances */
- U.gp_manhattendist= 3;
- U.gp_euclideandist= 20;
+ U.gp_manhattendist= 2;
+ U.gp_euclideandist= 15;
}
/* GL Texture Garbage Collection (variable abused above!) */