Revision: 50077
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=50077
Author:   nazgul
Date:     2012-08-21 10:44:04 +0000 (Tue, 21 Aug 2012)
Log Message:
-----------
Merging r50049 through r50076 from trunk into soc-2011-tomato

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

Modified Paths:
--------------
    branches/soc-2011-tomato/build_files/scons/tools/btools.py
    branches/soc-2011-tomato/intern/cycles/CMakeLists.txt
    branches/soc-2011-tomato/intern/guardedalloc/MEM_guardedalloc.h
    branches/soc-2011-tomato/intern/guardedalloc/intern/mallocn.c
    branches/soc-2011-tomato/source/blender/blenfont/intern/blf_dir.c
    branches/soc-2011-tomato/source/blender/blenfont/intern/blf_font.c
    branches/soc-2011-tomato/source/blender/blenfont/intern/blf_glyph.c
    branches/soc-2011-tomato/source/blender/blenkernel/BKE_colortools.h
    branches/soc-2011-tomato/source/blender/blenkernel/BKE_font.h
    branches/soc-2011-tomato/source/blender/blenkernel/BKE_mask.h
    branches/soc-2011-tomato/source/blender/blenkernel/BKE_packedFile.h
    branches/soc-2011-tomato/source/blender/blenkernel/BKE_sequencer.h
    branches/soc-2011-tomato/source/blender/blenkernel/intern/brush.c
    branches/soc-2011-tomato/source/blender/blenkernel/intern/colortools.c
    branches/soc-2011-tomato/source/blender/blenkernel/intern/font.c
    branches/soc-2011-tomato/source/blender/blenkernel/intern/mask.c
    branches/soc-2011-tomato/source/blender/blenkernel/intern/mask_rasterize.c
    branches/soc-2011-tomato/source/blender/blenkernel/intern/packedFile.c
    branches/soc-2011-tomato/source/blender/blenkernel/intern/seqcache.c
    branches/soc-2011-tomato/source/blender/blenkernel/intern/texture.c
    branches/soc-2011-tomato/source/blender/blenlib/BLI_rect.h
    branches/soc-2011-tomato/source/blender/blenlib/BLI_vfontdata.h
    branches/soc-2011-tomato/source/blender/blenlib/intern/freetypefont.c
    branches/soc-2011-tomato/source/blender/blenlib/intern/rct.c
    branches/soc-2011-tomato/source/blender/blenloader/intern/readfile.c
    branches/soc-2011-tomato/source/blender/blenloader/intern/versioning_250.c
    
branches/soc-2011-tomato/source/blender/compositor/operations/COM_ColorBalanceASCCDLOperation.cpp
    
branches/soc-2011-tomato/source/blender/compositor/operations/COM_ColorCurveOperation.cpp
    
branches/soc-2011-tomato/source/blender/compositor/operations/COM_ColorCurveOperation.h
    
branches/soc-2011-tomato/source/blender/compositor/operations/COM_DilateErodeOperation.cpp
    
branches/soc-2011-tomato/source/blender/editors/animation/anim_channels_defines.c
    branches/soc-2011-tomato/source/blender/editors/animation/anim_markers.c
    branches/soc-2011-tomato/source/blender/editors/gpencil/gpencil_edit.c
    branches/soc-2011-tomato/source/blender/editors/gpencil/gpencil_paint.c
    branches/soc-2011-tomato/source/blender/editors/include/ED_clip.h
    branches/soc-2011-tomato/source/blender/editors/interface/interface.c
    branches/soc-2011-tomato/source/blender/editors/interface/interface_draw.c
    
branches/soc-2011-tomato/source/blender/editors/interface/interface_handlers.c
    branches/soc-2011-tomato/source/blender/editors/interface/interface_ops.c
    branches/soc-2011-tomato/source/blender/editors/interface/interface_panel.c
    
branches/soc-2011-tomato/source/blender/editors/interface/interface_regions.c
    branches/soc-2011-tomato/source/blender/editors/interface/interface_style.c
    
branches/soc-2011-tomato/source/blender/editors/interface/interface_templates.c
    
branches/soc-2011-tomato/source/blender/editors/interface/interface_widgets.c
    branches/soc-2011-tomato/source/blender/editors/interface/view2d.c
    branches/soc-2011-tomato/source/blender/editors/interface/view2d_ops.c
    branches/soc-2011-tomato/source/blender/editors/mask/mask_draw.c
    branches/soc-2011-tomato/source/blender/editors/mesh/editface.c
    branches/soc-2011-tomato/source/blender/editors/render/render_preview.c
    branches/soc-2011-tomato/source/blender/editors/screen/area.c
    branches/soc-2011-tomato/source/blender/editors/screen/screen_ops.c
    branches/soc-2011-tomato/source/blender/editors/space_action/action_draw.c
    branches/soc-2011-tomato/source/blender/editors/space_action/action_edit.c
    branches/soc-2011-tomato/source/blender/editors/space_action/action_select.c
    branches/soc-2011-tomato/source/blender/editors/space_clip/clip_buttons.c
    
branches/soc-2011-tomato/source/blender/editors/space_clip/clip_dopesheet_draw.c
    branches/soc-2011-tomato/source/blender/editors/space_clip/clip_draw.c
    branches/soc-2011-tomato/source/blender/editors/space_clip/clip_editor.c
    branches/soc-2011-tomato/source/blender/editors/space_clip/clip_graph_ops.c
    branches/soc-2011-tomato/source/blender/editors/space_clip/clip_ops.c
    branches/soc-2011-tomato/source/blender/editors/space_clip/space_clip.c
    
branches/soc-2011-tomato/source/blender/editors/space_console/space_console.c
    branches/soc-2011-tomato/source/blender/editors/space_file/filesel.c
    branches/soc-2011-tomato/source/blender/editors/space_file/space_file.c
    branches/soc-2011-tomato/source/blender/editors/space_graph/graph_draw.c
    branches/soc-2011-tomato/source/blender/editors/space_graph/graph_select.c
    branches/soc-2011-tomato/source/blender/editors/space_image/image_buttons.c
    branches/soc-2011-tomato/source/blender/editors/space_image/image_draw.c
    branches/soc-2011-tomato/source/blender/editors/space_image/image_edit.c
    branches/soc-2011-tomato/source/blender/editors/space_image/image_ops.c
    branches/soc-2011-tomato/source/blender/editors/space_image/space_image.c
    branches/soc-2011-tomato/source/blender/editors/space_logic/logic_buttons.c
    branches/soc-2011-tomato/source/blender/editors/space_nla/nla_edit.c
    branches/soc-2011-tomato/source/blender/editors/space_nla/nla_select.c
    branches/soc-2011-tomato/source/blender/editors/space_node/drawnode.c
    branches/soc-2011-tomato/source/blender/editors/space_node/node_draw.c
    branches/soc-2011-tomato/source/blender/editors/space_node/node_edit.c
    branches/soc-2011-tomato/source/blender/editors/space_node/node_view.c
    
branches/soc-2011-tomato/source/blender/editors/space_outliner/outliner_edit.c
    
branches/soc-2011-tomato/source/blender/editors/space_sequencer/sequencer_draw.c
    
branches/soc-2011-tomato/source/blender/editors/space_sequencer/sequencer_edit.c
    branches/soc-2011-tomato/source/blender/editors/space_text/text_ops.c
    branches/soc-2011-tomato/source/blender/editors/space_time/time_ops.c
    branches/soc-2011-tomato/source/blender/editors/space_view3d/view3d_draw.c
    branches/soc-2011-tomato/source/blender/editors/space_view3d/view3d_edit.c
    branches/soc-2011-tomato/source/blender/editors/space_view3d/view3d_select.c
    branches/soc-2011-tomato/source/blender/editors/transform/transform.c
    
branches/soc-2011-tomato/source/blender/editors/transform/transform_conversions.c
    
branches/soc-2011-tomato/source/blender/editors/transform/transform_generics.c
    branches/soc-2011-tomato/source/blender/makesdna/DNA_color_types.h
    branches/soc-2011-tomato/source/blender/makesdna/DNA_vfont_types.h
    branches/soc-2011-tomato/source/blender/makesrna/intern/rna_color.c
    branches/soc-2011-tomato/source/blender/nodes/SConscript
    
branches/soc-2011-tomato/source/blender/nodes/composite/nodes/node_composite_alphaOver.c
    
branches/soc-2011-tomato/source/blender/nodes/composite/nodes/node_composite_bilateralblur.c
    
branches/soc-2011-tomato/source/blender/nodes/composite/nodes/node_composite_blur.c
    
branches/soc-2011-tomato/source/blender/nodes/composite/nodes/node_composite_brightness.c
    
branches/soc-2011-tomato/source/blender/nodes/composite/nodes/node_composite_colorSpill.c
    
branches/soc-2011-tomato/source/blender/nodes/composite/nodes/node_composite_composite.c
    
branches/soc-2011-tomato/source/blender/nodes/composite/nodes/node_composite_keying.c
    
branches/soc-2011-tomato/source/blender/nodes/composite/nodes/node_composite_keyingscreen.c
    
branches/soc-2011-tomato/source/blender/nodes/composite/nodes/node_composite_mask.c
    
branches/soc-2011-tomato/source/blender/nodes/composite/nodes/node_composite_moviedistortion.c
    
branches/soc-2011-tomato/source/blender/nodes/composite/nodes/node_composite_outputFile.c
    
branches/soc-2011-tomato/source/blender/nodes/composite/nodes/node_composite_splitViewer.c
    
branches/soc-2011-tomato/source/blender/nodes/composite/nodes/node_composite_viewer.c
    branches/soc-2011-tomato/source/blender/render/intern/source/pipeline.c
    branches/soc-2011-tomato/source/blender/render/intern/source/render_result.c
    branches/soc-2011-tomato/source/blender/windowmanager/intern/wm_files.c
    branches/soc-2011-tomato/source/blender/windowmanager/intern/wm_gesture.c
    branches/soc-2011-tomato/source/blender/windowmanager/intern/wm_init_exit.c
    branches/soc-2011-tomato/source/blender/windowmanager/intern/wm_playanim.c
    branches/soc-2011-tomato/source/blender/windowmanager/intern/wm_subwindow.c
    branches/soc-2011-tomato/source/blender/windowmanager/intern/wm_window.c
    
branches/soc-2011-tomato/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp

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-50048
   + 
/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-50076

Modified: branches/soc-2011-tomato/build_files/scons/tools/btools.py
===================================================================
--- branches/soc-2011-tomato/build_files/scons/tools/btools.py  2012-08-21 
10:42:21 UTC (rev 50076)
+++ branches/soc-2011-tomato/build_files/scons/tools/btools.py  2012-08-21 
10:44:04 UTC (rev 50077)
@@ -108,7 +108,7 @@
             'WITH_BF_STATICFFMPEG', 'BF_FFMPEG_LIB_STATIC',
             'WITH_BF_OGG', 'BF_OGG', 'BF_OGG_LIB',
             'WITH_BF_FRAMESERVER',
-            'WITH_BF_COMPOSITOR',
+            'WITH_BF_COMPOSITOR', 'WITH_BF_COMPOSITOR_LEGACY',
             'WITH_BF_JPEG', 'BF_JPEG', 'BF_JPEG_INC', 'BF_JPEG_LIB', 
'BF_JPEG_LIBPATH',
             'WITH_BF_OPENJPEG', 'BF_OPENJPEG', 'BF_OPENJPEG_INC', 
'BF_OPENJPEG_LIB', 'BF_OPENJPEG_LIBPATH',
             'WITH_BF_REDCODE', 'BF_REDCODE', 'BF_REDCODE_INC', 
'BF_REDCODE_LIB', 'BF_REDCODE_LIBPATH',
@@ -592,7 +592,8 @@
         ('BF_BOOST_LIBPATH', 'Boost library path', ''),
         ('BF_BOOST_LIB_STATIC', 'Boost static library', ''),
 
-        (BoolVariable('WITH_GHOST_XDND', 'Build with drag-n-drop support on 
Linux platforms using XDND protocol', True))
+        (BoolVariable('WITH_GHOST_XDND', 'Build with drag-n-drop support on 
Linux platforms using XDND protocol', True)),
+        (BoolVariable('WITH_BF_COMPOSITOR_LEGACY', 'Enable the legacy 
compositor', True))
     ) # end of opts.AddOptions()
 
     return localopts

Modified: branches/soc-2011-tomato/intern/cycles/CMakeLists.txt
===================================================================
--- branches/soc-2011-tomato/intern/cycles/CMakeLists.txt       2012-08-21 
10:42:21 UTC (rev 50076)
+++ branches/soc-2011-tomato/intern/cycles/CMakeLists.txt       2012-08-21 
10:44:04 UTC (rev 50077)
@@ -63,7 +63,6 @@
 # Subdirectories
 
 if(WITH_CYCLES_BLENDER)
-       add_definitions(-DBLENDER_PLUGIN)
        add_subdirectory(blender)
 endif()
 

Modified: branches/soc-2011-tomato/intern/guardedalloc/MEM_guardedalloc.h
===================================================================
--- branches/soc-2011-tomato/intern/guardedalloc/MEM_guardedalloc.h     
2012-08-21 10:42:21 UTC (rev 50076)
+++ branches/soc-2011-tomato/intern/guardedalloc/MEM_guardedalloc.h     
2012-08-21 10:44:04 UTC (rev 50077)
@@ -92,7 +92,7 @@
        /**
         * Duplicates a block of memory, and returns a pointer to the
         * newly allocated block.  */
-       void *MEM_dupallocN(void *vmemh)
+       void *MEM_dupallocN(const void *vmemh)
 #if MEM_GNU_ATTRIBUTES
        __attribute__((warn_unused_result))
 #endif

Modified: branches/soc-2011-tomato/intern/guardedalloc/intern/mallocn.c
===================================================================
--- branches/soc-2011-tomato/intern/guardedalloc/intern/mallocn.c       
2012-08-21 10:42:21 UTC (rev 50076)
+++ branches/soc-2011-tomato/intern/guardedalloc/intern/mallocn.c       
2012-08-21 10:44:04 UTC (rev 50077)
@@ -248,12 +248,12 @@
        }
 }
 
-void *MEM_dupallocN(void *vmemh)
+void *MEM_dupallocN(const void *vmemh)
 {
        void *newp = NULL;
        
        if (vmemh) {
-               MemHead *memh = vmemh;
+               const MemHead *memh = vmemh;
                memh--;
 
 #ifndef DEBUG_MEMDUPLINAME

Modified: branches/soc-2011-tomato/source/blender/blenfont/intern/blf_dir.c
===================================================================
--- branches/soc-2011-tomato/source/blender/blenfont/intern/blf_dir.c   
2012-08-21 10:42:21 UTC (rev 50076)
+++ branches/soc-2011-tomato/source/blender/blenfont/intern/blf_dir.c   
2012-08-21 10:44:04 UTC (rev 50077)
@@ -43,7 +43,10 @@
 
 #include "BKE_utildefines.h"
 
-#include "BLI_blenlib.h"
+#include "BLI_fileops.h"
+#include "BLI_listbase.h"
+#include "BLI_path_util.h"
+#include "BLI_string.h"
 
 #include "BIF_gl.h"
 

Modified: branches/soc-2011-tomato/source/blender/blenfont/intern/blf_font.c
===================================================================
--- branches/soc-2011-tomato/source/blender/blenfont/intern/blf_font.c  
2012-08-21 10:42:21 UTC (rev 50076)
+++ branches/soc-2011-tomato/source/blender/blenfont/intern/blf_font.c  
2012-08-21 10:44:04 UTC (rev 50077)
@@ -43,10 +43,12 @@
 
 #include "DNA_vec_types.h"
 
-
-#include "BLI_blenlib.h"
+#include "BLI_listbase.h"
+#include "BLI_math.h"
+#include "BLI_rect.h"
+#include "BLI_string.h"
+#include "BLI_string_utf8.h"
 #include "BLI_linklist.h"  /* linknode */
-#include "BLI_math.h"
 
 #include "BIF_gl.h"
 #include "BLF_api.h"
@@ -152,7 +154,7 @@
                                   _kern_mode,                                  
         \
                                   &(_delta)) == 0)                             
         \
                {                                                               
         \
-                       _pen_x += delta.x >> 6;                                 
             \
+                       _pen_x += _delta.x >> 6;                                
             \
                }                                                               
         \
        }                                                                       
     \
 } (void)0
@@ -229,9 +231,9 @@
        FontBufInfoBLF *buf_info = &font->buf_info;
        float b_col_float[4];
        const unsigned char b_col_char[4] = {buf_info->col[0] * 255,
-                                                                               
 buf_info->col[1] * 255,
-                                                                               
 buf_info->col[2] * 255,
-                                                                               
 buf_info->col[3] * 255};
+                                            buf_info->col[1] * 255,
+                                            buf_info->col[2] * 255,
+                                            buf_info->col[3] * 255};
 
        unsigned char *cbuf;
        int chx, chy;
@@ -242,7 +244,7 @@
 
        blf_font_ensure_ascii_table(font);
 
-       /* another buffer spesific call for color conversion */
+       /* another buffer specific call for color conversion */
        if (buf_info->do_color_management) {
                srgb_to_linearrgb_v4(b_col_float, buf_info->col);
        }
@@ -425,8 +427,8 @@
        }
 
        blf_font_boundbox(font, str, &box);
-       *width = ((box.xmax - box.xmin) * xa);
-       *height = ((box.ymax - box.ymin) * ya);
+       *width  = (BLI_RCT_SIZE_X(&box) * xa);
+       *height = (BLI_RCT_SIZE_Y(&box) * ya);
 }
 
 float blf_font_width(FontBLF *font, const char *str)
@@ -440,7 +442,7 @@
                xa = 1.0f;
 
        blf_font_boundbox(font, str, &box);
-       return (box.xmax - box.xmin) * xa;
+       return BLI_RCT_SIZE_X(&box) * xa;
 }
 
 float blf_font_height(FontBLF *font, const char *str)

Modified: branches/soc-2011-tomato/source/blender/blenfont/intern/blf_glyph.c
===================================================================
--- branches/soc-2011-tomato/source/blender/blenfont/intern/blf_glyph.c 
2012-08-21 10:42:21 UTC (rev 50076)
+++ branches/soc-2011-tomato/source/blender/blenfont/intern/blf_glyph.c 
2012-08-21 10:44:04 UTC (rev 50077)
@@ -46,7 +46,8 @@
 #include "DNA_vec_types.h"
 #include "DNA_userdef_types.h"
 
-#include "BLI_blenlib.h"
+#include "BLI_listbase.h"
+#include "BLI_rect.h"
 
 #include "BIF_gl.h"
 #include "BLF_api.h"
@@ -314,13 +315,14 @@
 
 static void blf_texture5_draw(const float shadow_col[4], float uv[2][2], float 
x1, float y1, float x2, float y2)
 {
-       float soft[25] = {1 / 60.0f, 1 / 60.0f, 2 / 60.0f, 1 / 60.0f, 1 / 60.0f,
-                         1 / 60.0f, 3 / 60.0f, 5 / 60.0f, 3 / 60.0f, 1 / 60.0f,
-                         2 / 60.0f, 5 / 60.0f, 8 / 60.0f, 5 / 60.0f, 2 / 60.0f,
-                         1 / 60.0f, 3 / 60.0f, 5 / 60.0f, 3 / 60.0f, 1 / 60.0f,
-                         1 / 60.0f, 1 / 60.0f, 2 / 60.0f, 1 / 60.0f, 1 / 
60.0f};
+       const float soft[25] = {1 / 60.0f, 1 / 60.0f, 2 / 60.0f, 1 / 60.0f, 1 / 
60.0f,
+                               1 / 60.0f, 3 / 60.0f, 5 / 60.0f, 3 / 60.0f, 1 / 
60.0f,
+                               2 / 60.0f, 5 / 60.0f, 8 / 60.0f, 5 / 60.0f, 2 / 
60.0f,
+                               1 / 60.0f, 3 / 60.0f, 5 / 60.0f, 3 / 60.0f, 1 / 
60.0f,
+                               1 / 60.0f, 1 / 60.0f, 2 / 60.0f, 1 / 60.0f, 1 / 
60.0f};
        
-       float color[4], *fp = soft;
+       const float *fp = soft;
+       float color[4];
        int dx, dy;
 
        color[0] = shadow_col[0];
@@ -340,11 +342,12 @@
 
 static void blf_texture3_draw(const float shadow_col[4], float uv[2][2], float 
x1, float y1, float x2, float y2)
 {
-       float soft[9] = {1 / 16.0f, 2 / 16.0f, 1 / 16.0f,
-                        2 / 16.0f, 4 / 16.0f, 2 / 16.0f,
-                        1 / 16.0f, 2 / 16.0f, 1 / 16.0f};
+       const float soft[9] = {1 / 16.0f, 2 / 16.0f, 1 / 16.0f,
+                              2 / 16.0f, 4 / 16.0f, 2 / 16.0f,
+                              1 / 16.0f, 2 / 16.0f, 1 / 16.0f};
 
-       float color[4], *fp = soft;
+       const float *fp = soft;
+       float color[4];
        int dx, dy;
 
        color[0] = shadow_col[0];
@@ -412,7 +415,7 @@
                g->uv[1][1] = ((float)(g->yoff + g->height)) / 
((float)gc->p2_height);
 
                /* update the x offset for the next glyph. */
-               gc->x_offs += (int)(g->box.xmax - g->box.xmin + gc->pad);
+               gc->x_offs += (int)(BLI_RCT_SIZE_X(&g->box) + gc->pad);
 
                gc->rem_glyphs--;
                g->build_tex = 1;

Modified: branches/soc-2011-tomato/source/blender/blenkernel/BKE_colortools.h
===================================================================
--- branches/soc-2011-tomato/source/blender/blenkernel/BKE_colortools.h 
2012-08-21 10:42:21 UTC (rev 50076)
+++ branches/soc-2011-tomato/source/blender/blenkernel/BKE_colortools.h 
2012-08-21 10:44:04 UTC (rev 50077)
@@ -56,12 +56,13 @@
 void                curvemapping_free(struct CurveMapping *cumap);
 void                curvemapping_copy_data(struct CurveMapping *target, struct 
CurveMapping *cumap);
 struct CurveMapping *curvemapping_copy(struct CurveMapping *cumap);
+void                curvemapping_set_black_white_ex(const float black[3], 
const float white[3], float r_bwmul[3]);
 void                curvemapping_set_black_white(struct CurveMapping *cumap, 
const float black[3], const float white[3]);
 
 #define CURVEMAP_SLOPE_NEGATIVE 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