Revision: 50265
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=50265
Author:   nazgul
Date:     2012-08-29 12:49:10 +0000 (Wed, 29 Aug 2012)
Log Message:
-----------
Merging r50248 through r50264 from trunk into soc-2011-tomato

Revision Links:
--------------
    
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=50248
    
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=50264

Modified Paths:
--------------
    branches/soc-2011-tomato/intern/ghost/intern/GHOST_WindowCocoa.mm
    
branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/spell_check_utils.py
    branches/soc-2011-tomato/source/blender/blenkernel/BKE_image.h
    branches/soc-2011-tomato/source/blender/blenkernel/BKE_world.h
    branches/soc-2011-tomato/source/blender/blenkernel/intern/colortools.c
    branches/soc-2011-tomato/source/blender/blenkernel/intern/image.c
    branches/soc-2011-tomato/source/blender/blenkernel/intern/library.c
    branches/soc-2011-tomato/source/blender/blenkernel/intern/mball.c
    branches/soc-2011-tomato/source/blender/blenkernel/intern/pointcache.c
    branches/soc-2011-tomato/source/blender/blenkernel/intern/world.c
    branches/soc-2011-tomato/source/blender/blenlib/BLI_path_util.h
    branches/soc-2011-tomato/source/blender/blenlib/intern/bpath.c
    branches/soc-2011-tomato/source/blender/blenlib/intern/path_util.c
    branches/soc-2011-tomato/source/blender/blenloader/intern/readfile.c
    branches/soc-2011-tomato/source/blender/compositor/intern/COM_SocketReader.h
    branches/soc-2011-tomato/source/blender/compositor/nodes/COM_RotateNode.cpp
    
branches/soc-2011-tomato/source/blender/compositor/nodes/COM_Stabilize2dNode.cpp
    
branches/soc-2011-tomato/source/blender/compositor/nodes/COM_TransformNode.cpp
    branches/soc-2011-tomato/source/blender/editors/render/render_preview.c
    branches/soc-2011-tomato/source/blender/editors/space_file/file_ops.c
    branches/soc-2011-tomato/source/blender/editors/space_image/image_ops.c
    branches/soc-2011-tomato/source/blender/makesdna/intern/makesdna.c
    branches/soc-2011-tomato/source/blender/makesrna/RNA_enum_types.h
    branches/soc-2011-tomato/source/blender/makesrna/intern/rna_image.c
    branches/soc-2011-tomato/source/blender/makesrna/intern/rna_nodetree.c
    branches/soc-2011-tomato/source/blender/makesrna/intern/rna_pose.c
    branches/soc-2011-tomato/source/blender/nodes/intern/node_util.c
    branches/soc-2011-tomato/source/blender/nodes/intern/node_util.h
    
branches/soc-2011-tomato/source/blender/nodes/shader/nodes/node_shader_curves.c
    
branches/soc-2011-tomato/source/blender/nodes/texture/nodes/node_texture_curves.c
    branches/soc-2011-tomato/source/blender/python/generic/py_capi_utils.c
    branches/soc-2011-tomato/source/blender/python/mathutils/mathutils_Color.c
    
branches/soc-2011-tomato/source/blender/python/mathutils/mathutils_Quaternion.c
    branches/soc-2011-tomato/source/blender/python/mathutils/mathutils_Vector.c
    
branches/soc-2011-tomato/source/blender/python/mathutils/mathutils_geometry.c

Property Changed:
----------------
    branches/soc-2011-tomato/
    branches/soc-2011-tomato/source/blender/editors/interface/interface.c
    branches/soc-2011-tomato/source/blender/editors/space_outliner/


Property changes on: branches/soc-2011-tomato
___________________________________________________________________
Modified: svn:mergeinfo
   - 
/branches/ge_harmony:42255,42279-42282,42286,42302,42338,42349,42616,42620,42698-42699,42739,42753,42773-42774,42832,44568,44597-44598,44793-44794
/branches/soc-2011-cucumber:37517,38166-38167,38177,38179-38180,38187,38242,38384,38387,38403-38404,38407,38968,38970,38973,39045,40845,42997-42998,43439
/branches/vgroup_modifiers:38694-39989
/trunk/blender:36831-50247
   + 
/branches/ge_harmony:42255,42279-42282,42286,42302,42338,42349,42616,42620,42698-42699,42739,42753,42773-42774,42832,44568,44597-44598,44793-44794
/branches/soc-2011-cucumber:37517,38166-38167,38177,38179-38180,38187,38242,38384,38387,38403-38404,38407,38968,38970,38973,39045,40845,42997-42998,43439
/branches/vgroup_modifiers:38694-39989
/trunk/blender:36831-50264

Modified: branches/soc-2011-tomato/intern/ghost/intern/GHOST_WindowCocoa.mm
===================================================================
--- branches/soc-2011-tomato/intern/ghost/intern/GHOST_WindowCocoa.mm   
2012-08-29 12:47:42 UTC (rev 50264)
+++ branches/soc-2011-tomato/intern/ghost/intern/GHOST_WindowCocoa.mm   
2012-08-29 12:49:10 UTC (rev 50265)
@@ -1150,7 +1150,7 @@
                        /******* Multithreaded opengl code : uncomment for 
enabling
                        cglCtx = (CGLContextObj)[tmpOpenGLContext 
CGLContextObj];
                        if (CGLEnable(cglCtx, kCGLCEMPEngine) == kCGLNoError)
-                               printf("\nSwitched openGL to multithreaded 
mode");
+                               printf("\nSwitched openGL to multithreaded 
mode\n");
                         */
                        
                        if (!s_firstOpenGLcontext) s_firstOpenGLcontext = 
tmpOpenGLContext;

Modified: 
branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/spell_check_utils.py
===================================================================
--- 
branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/spell_check_utils.py
 2012-08-29 12:47:42 UTC (rev 50264)
+++ 
branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/spell_check_utils.py
 2012-08-29 12:49:10 UTC (rev 50265)
@@ -329,6 +329,7 @@
     "bweight",
     "colorband",
     "datablock", "datablocks",
+    "despeckle",
     "dopesheet",
     "dupliface", "duplifaces",
     "dupliframe", "dupliframes",

Modified: branches/soc-2011-tomato/source/blender/blenkernel/BKE_image.h
===================================================================
--- branches/soc-2011-tomato/source/blender/blenkernel/BKE_image.h      
2012-08-29 12:47:42 UTC (rev 50264)
+++ branches/soc-2011-tomato/source/blender/blenkernel/BKE_image.h      
2012-08-29 12:49:10 UTC (rev 50265)
@@ -107,6 +107,12 @@
 #define IMA_TYPE_R_RESULT   4
 #define IMA_TYPE_COMPOSITE  5
 
+enum {
+       IMA_GENTYPE_BLANK = 0,
+       IMA_GENTYPE_GRID = 1,
+       IMA_GENTYPE_GRID_COLOR = 2
+};
+
 /* ima->ok */
 #define IMA_OK              1
 #define IMA_OK_LOADED       2

Modified: branches/soc-2011-tomato/source/blender/blenkernel/BKE_world.h
===================================================================
--- branches/soc-2011-tomato/source/blender/blenkernel/BKE_world.h      
2012-08-29 12:47:42 UTC (rev 50264)
+++ branches/soc-2011-tomato/source/blender/blenkernel/BKE_world.h      
2012-08-29 12:49:10 UTC (rev 50265)
@@ -35,7 +35,8 @@
 
 struct World;
 
-void BKE_world_free(struct World *sc); 
+void BKE_world_free(struct World *sc);
+void BKE_world_free_ex(struct World *sc, int do_id_user);
 struct World *add_world(const char *name);
 struct World *BKE_world_copy(struct World *wrld);
 struct World *localize_world(struct World *wrld);

Modified: branches/soc-2011-tomato/source/blender/blenkernel/intern/colortools.c
===================================================================
--- branches/soc-2011-tomato/source/blender/blenkernel/intern/colortools.c      
2012-08-29 12:47:42 UTC (rev 50264)
+++ branches/soc-2011-tomato/source/blender/blenkernel/intern/colortools.c      
2012-08-29 12:49:10 UTC (rev 50265)
@@ -106,9 +106,18 @@
        int a;
 
        for (a = 0; a < CM_TOT; a++) {
-               if (cumap->cm[a].curve) MEM_freeN(cumap->cm[a].curve);
-               if (cumap->cm[a].table) MEM_freeN(cumap->cm[a].table);
-               if (cumap->cm[a].premultable) 
MEM_freeN(cumap->cm[a].premultable);
+               if (cumap->cm[a].curve) {
+                       MEM_freeN(cumap->cm[a].curve);
+                       cumap->cm[a].curve = NULL;
+               }
+               if (cumap->cm[a].table) {
+                       MEM_freeN(cumap->cm[a].table);
+                       cumap->cm[a].table = NULL;
+               }
+               if (cumap->cm[a].premultable) {
+                       MEM_freeN(cumap->cm[a].premultable);
+                       cumap->cm[a].premultable = NULL;
+               }
        }
 }
 

Modified: branches/soc-2011-tomato/source/blender/blenkernel/intern/image.c
===================================================================
--- branches/soc-2011-tomato/source/blender/blenkernel/intern/image.c   
2012-08-29 12:47:42 UTC (rev 50264)
+++ branches/soc-2011-tomato/source/blender/blenkernel/intern/image.c   
2012-08-29 12:49:10 UTC (rev 50265)
@@ -601,7 +601,7 @@
        return BKE_image_load(filepath);
 }
 
-static ImBuf *add_ibuf_size(unsigned int width, unsigned int height, const 
char *name, int depth, int floatbuf, short uvtestgrid, float color[4])
+static ImBuf *add_ibuf_size(unsigned int width, unsigned int height, const 
char *name, int depth, int floatbuf, short gen_type, float color[4])
 {
        ImBuf *ibuf;
        unsigned char *rect = NULL;
@@ -621,11 +621,11 @@
        BLI_strncpy(ibuf->name, name, sizeof(ibuf->name));
        ibuf->userflags |= IB_BITMAPDIRTY;
 
-       switch (uvtestgrid) {
-               case 1:
+       switch (gen_type) {
+               case IMA_GENTYPE_GRID:
                        BKE_image_buf_fill_checker(rect, rect_float, width, 
height);
                        break;
-               case 2:
+               case IMA_GENTYPE_GRID_COLOR:
                        BKE_image_buf_fill_checker_color(rect, rect_float, 
width, height);
                        break;
                default:
@@ -636,7 +636,7 @@
 }
 
 /* adds new image block, creates ImBuf and initializes color */
-Image *BKE_image_add_generated(unsigned int width, unsigned int height, const 
char *name, int depth, int floatbuf, short uvtestgrid, float color[4])
+Image *BKE_image_add_generated(unsigned int width, unsigned int height, const 
char *name, int depth, int floatbuf, short gen_type, float color[4])
 {
        /* on save, type is changed to FILE in editsima.c */
        Image *ima = image_alloc(name, IMA_SRC_GENERATED, IMA_TYPE_UV_TEST);
@@ -647,10 +647,10 @@
                /* BLI_strncpy(ima->name, name, FILE_MAX); */ /* don't do this, 
this writes in ain invalid filepath! */
                ima->gen_x = width;
                ima->gen_y = height;
-               ima->gen_type = uvtestgrid;
+               ima->gen_type = gen_type;
                ima->gen_flag |= (floatbuf ? IMA_GEN_FLOAT : 0);
 
-               ibuf = add_ibuf_size(width, height, ima->name, depth, floatbuf, 
uvtestgrid, color);
+               ibuf = add_ibuf_size(width, height, ima->name, depth, floatbuf, 
gen_type, color);
                image_assign_ibuf(ima, ibuf, IMA_NO_INDEX, 0);
 
                ima->ok = IMA_OK_LOADED;

Modified: branches/soc-2011-tomato/source/blender/blenkernel/intern/library.c
===================================================================
--- branches/soc-2011-tomato/source/blender/blenkernel/intern/library.c 
2012-08-29 12:47:42 UTC (rev 50264)
+++ branches/soc-2011-tomato/source/blender/blenkernel/intern/library.c 
2012-08-29 12:49:10 UTC (rev 50265)
@@ -1528,7 +1528,7 @@
 
        /* not essential but set filepath is an absolute copy of value which
         * is more useful if its kept in sync */
-       if (strncmp(lib->filepath, "//", 2) == 0) {
+       if (BLI_path_is_rel(lib->filepath)) {
                /* note that the file may be unsaved, in this case, setting the
                 * filepath on an indirectly linked path is not allowed from the
                 * outliner, and its not really supported but allow from here 
for now

Modified: branches/soc-2011-tomato/source/blender/blenkernel/intern/mball.c
===================================================================
--- branches/soc-2011-tomato/source/blender/blenkernel/intern/mball.c   
2012-08-29 12:47:42 UTC (rev 50264)
+++ branches/soc-2011-tomato/source/blender/blenkernel/intern/mball.c   
2012-08-29 12:49:10 UTC (rev 50265)
@@ -163,11 +163,13 @@
                      float (*function)(float, float, float), float p[3], 
MetaBall *mb, int f);
 
 /* Global variables */
+static struct {
+       float thresh;
+       int totelem;
+       MetaElem **mainb;
+       octal_tree *metaball_tree;
+} G_mb = {0};
 
-static float thresh = 0.6f;
-static int totelem = 0;
-static MetaElem **mainb;
-static octal_tree *metaball_tree = NULL;
 /* Functions */
 
 void BKE_mball_unlink(MetaBall *mb)
@@ -523,7 +525,7 @@
        char basisname[MAX_ID_NAME], obname[MAX_ID_NAME];
 
        BLI_split_name_num(basisname, &basisnr, basis->id.name + 2, '.');
-       totelem = 0;
+       G_mb.totelem = 0;
 
        /* XXX recursion check, see scene.c, just too simple code this 
BKE_scene_base_iter_next() */
        if (F_ERROR == BKE_scene_base_iter_next(&sce_iter, 0, NULL, NULL))
@@ -564,9 +566,10 @@
                                }
                        }
                        
-                       while (ml) {
-                               if (!(ml->flag & MB_HIDE)) totelem++;
-                               ml = ml->next;
+                       for ( ; ml; ml = ml->next) {
+                               if (!(ml->flag & MB_HIDE)) {
+                                       G_mb.totelem++;
+                               }
                        }
                }
        }
@@ -633,66 +636,65 @@
 
        mul_m4_v3((float (*)[4])ball->imat, dvec);
 
-       if (ball->type == MB_BALL) {
+       switch (ball->type) {
+               case MB_BALL:
+                       /* do nothing */
+                       break;
+               case MB_TUBEX:
+                       if      (dvec[0] >  ball->len) dvec[0] -= ball->len;
+                       else if (dvec[0] < -ball->len) dvec[0] += ball->len;
+                       else                           dvec[0] = 0.0;
+                       break;
+               case MB_TUBEY:
+                       if      (dvec[1] >  ball->len) dvec[1] -= ball->len;
+                       else if (dvec[1] < -ball->len) dvec[1] += ball->len;
+                       else                           dvec[1] = 0.0;
+                       break;
+               case MB_TUBEZ:
+                       if      (dvec[2] >  ball->len) dvec[2] -= ball->len;
+                       else if (dvec[2] < -ball->len) dvec[2] += ball->len;
+                       else                           dvec[2] = 0.0;
+                       break;
+               case MB_TUBE:
+                       if      (dvec[0] >  ball->expx) dvec[0] -= ball->expx;
+                       else if (dvec[0] < -ball->expx) dvec[0] += ball->expx;
+                       else                            dvec[0] = 0.0;
+                       break;
+               case MB_PLANE:
+                       if      (dvec[0] >  ball->expx) dvec[0] -= ball->expx;
+                       else if (dvec[0] < -ball->expx) dvec[0] += ball->expx;
+                       else                            dvec[0] = 0.0;
+                       if      (dvec[1] >  ball->expy) dvec[1] -= ball->expy;
+                       else if (dvec[1] < -ball->expy) dvec[1] += ball->expy;
+                       else                            dvec[1] = 0.0;
+                       break;
+               case MB_ELIPSOID:
+                       dvec[0] /= ball->expx;
+                       dvec[1] /= ball->expy;
+                       dvec[2] /= ball->expz;
+                       break;
+               case MB_CUBE:
+                       if      (dvec[0] >  ball->expx) dvec[0] -= ball->expx;
+                       else if (dvec[0] < -ball->expx) dvec[0] += ball->expx;
+                       else                            dvec[0] = 0.0;
+

@@ Diff output truncated at 10240 characters. @@
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to