[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36867] branches/soc-2011-onion: svn merge -r36833:36865 https://svn.blender.org/svnroot/bf-blender/trunk/ blender
Ryakiotakis Antonis
kalast at gmail.com
Tue May 24 16:06:44 CEST 2011
Revision: 36867
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36867
Author: psy-fi
Date: 2011-05-24 14:06:44 +0000 (Tue, 24 May 2011)
Log Message:
-----------
svn merge -r36833:36865 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Revision Links:
--------------
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36833
Modified Paths:
--------------
branches/soc-2011-onion/CMakeLists.txt
branches/soc-2011-onion/build_files/cmake/macros.cmake
branches/soc-2011-onion/intern/bsp/CMakeLists.txt
branches/soc-2011-onion/intern/bsp/SConscript
branches/soc-2011-onion/intern/container/CTR_TaggedIndex.h
branches/soc-2011-onion/intern/decimation/CMakeLists.txt
branches/soc-2011-onion/intern/decimation/SConscript
branches/soc-2011-onion/intern/ghost/intern/GHOST_WindowCocoa.mm
branches/soc-2011-onion/release/scripts/modules/bpy_extras/io_utils.py
branches/soc-2011-onion/source/blender/blenlib/intern/BLI_kdopbvh.c
branches/soc-2011-onion/source/blender/blenlib/intern/pbvh.c
branches/soc-2011-onion/source/blender/blenlib/intern/rct.c
branches/soc-2011-onion/source/blender/blenloader/intern/readfile.c
branches/soc-2011-onion/source/blender/editors/animation/keyframes_draw.c
branches/soc-2011-onion/source/blender/editors/include/ED_view3d.h
branches/soc-2011-onion/source/blender/editors/physics/particle_edit.c
branches/soc-2011-onion/source/blender/editors/screen/screen_edit.c
branches/soc-2011-onion/source/blender/editors/space_sequencer/sequencer_select.c
branches/soc-2011-onion/source/blender/editors/space_view3d/view3d_edit.c
branches/soc-2011-onion/source/blender/gpu/intern/gpu_material.c
branches/soc-2011-onion/source/blender/imbuf/intern/targa.c
branches/soc-2011-onion/source/blender/makesdna/intern/makesdna.c
branches/soc-2011-onion/source/blender/modifiers/intern/MOD_displace.c
branches/soc-2011-onion/source/creator/CMakeLists.txt
Property Changed:
----------------
branches/soc-2011-onion/
branches/soc-2011-onion/release/scripts/modules/bpy/ops.py
branches/soc-2011-onion/release/scripts/modules/bpy/utils.py
branches/soc-2011-onion/release/scripts/presets/sss/chicken.py
branches/soc-2011-onion/release/scripts/presets/sss/cream.py
branches/soc-2011-onion/release/scripts/presets/sss/ketchup.py
branches/soc-2011-onion/release/scripts/presets/sss/marble.py
branches/soc-2011-onion/release/scripts/presets/sss/potato.py
branches/soc-2011-onion/release/scripts/presets/sss/skim_milk.py
branches/soc-2011-onion/release/scripts/presets/sss/skin1.py
branches/soc-2011-onion/release/scripts/presets/sss/skin2.py
branches/soc-2011-onion/release/scripts/startup/bl_operators/add_mesh_torus.py
branches/soc-2011-onion/release/scripts/startup/bl_operators/uvcalc_smart_project.py
branches/soc-2011-onion/release/scripts/startup/bl_operators/vertexpaint_dirt.py
branches/soc-2011-onion/release/scripts/startup/bl_ui/properties_data_armature.py
branches/soc-2011-onion/release/scripts/startup/bl_ui/properties_data_bone.py
branches/soc-2011-onion/release/scripts/startup/bl_ui/properties_data_camera.py
branches/soc-2011-onion/release/scripts/startup/bl_ui/properties_data_empty.py
branches/soc-2011-onion/release/scripts/startup/bl_ui/properties_data_lamp.py
branches/soc-2011-onion/release/scripts/startup/bl_ui/properties_data_lattice.py
branches/soc-2011-onion/release/scripts/startup/bl_ui/properties_data_mesh.py
branches/soc-2011-onion/release/scripts/startup/bl_ui/properties_data_metaball.py
branches/soc-2011-onion/release/scripts/startup/bl_ui/properties_data_modifier.py
branches/soc-2011-onion/release/scripts/startup/bl_ui/properties_game.py
branches/soc-2011-onion/release/scripts/startup/bl_ui/properties_material.py
branches/soc-2011-onion/release/scripts/startup/bl_ui/properties_particle.py
branches/soc-2011-onion/release/scripts/startup/bl_ui/properties_physics_field.py
branches/soc-2011-onion/release/scripts/startup/bl_ui/properties_physics_fluid.py
branches/soc-2011-onion/release/scripts/startup/bl_ui/properties_physics_smoke.py
branches/soc-2011-onion/release/scripts/startup/bl_ui/properties_texture.py
branches/soc-2011-onion/release/scripts/startup/bl_ui/properties_world.py
branches/soc-2011-onion/release/scripts/startup/bl_ui/space_node.py
branches/soc-2011-onion/source/blender/blenkernel/BKE_customdata_file.h
branches/soc-2011-onion/source/blender/blenkernel/intern/customdata_file.c
branches/soc-2011-onion/source/blender/editors/datafiles/startup.blend.c
branches/soc-2011-onion/source/blender/editors/include/ED_particle.h
branches/soc-2011-onion/source/blender/editors/include/ED_physics.h
branches/soc-2011-onion/source/blender/editors/include/ED_render.h
branches/soc-2011-onion/source/blender/editors/include/ED_transform.h
branches/soc-2011-onion/source/blender/editors/interface/interface_intern.h
branches/soc-2011-onion/source/blender/editors/mesh/mesh_data.c
branches/soc-2011-onion/source/blender/editors/metaball/mball_edit.c
branches/soc-2011-onion/source/blender/editors/object/object_add.c
branches/soc-2011-onion/source/blender/editors/object/object_constraint.c
branches/soc-2011-onion/source/blender/editors/object/object_group.c
branches/soc-2011-onion/source/blender/editors/object/object_hook.c
branches/soc-2011-onion/source/blender/editors/object/object_lattice.c
branches/soc-2011-onion/source/blender/editors/object/object_relations.c
branches/soc-2011-onion/source/blender/editors/object/object_select.c
branches/soc-2011-onion/source/blender/editors/object/object_shapekey.c
branches/soc-2011-onion/source/blender/editors/object/object_transform.c
branches/soc-2011-onion/source/blender/editors/object/object_vgroup.c
branches/soc-2011-onion/source/blender/editors/physics/particle_boids.c
branches/soc-2011-onion/source/blender/editors/physics/particle_edit.c
branches/soc-2011-onion/source/blender/editors/physics/physics_fluid.c
branches/soc-2011-onion/source/blender/editors/physics/physics_pointcache.c
branches/soc-2011-onion/source/blender/editors/render/
branches/soc-2011-onion/source/blender/editors/render/render_intern.h
branches/soc-2011-onion/source/blender/editors/render/render_preview.c
branches/soc-2011-onion/source/blender/editors/render/render_shading.c
branches/soc-2011-onion/source/blender/editors/render/render_update.c
branches/soc-2011-onion/source/blender/editors/sculpt_paint/
branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_image.c
branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_vertex.c
branches/soc-2011-onion/source/blender/editors/sculpt_paint/sculpt.c
branches/soc-2011-onion/source/blender/editors/space_image/image_buttons.c
branches/soc-2011-onion/source/blender/editors/space_info/info_ops.c
branches/soc-2011-onion/source/blender/editors/space_node/node_edit.c
branches/soc-2011-onion/source/blender/editors/space_node/node_state.c
branches/soc-2011-onion/source/blender/editors/space_text/text_ops.c
branches/soc-2011-onion/source/blender/editors/space_userpref/
branches/soc-2011-onion/source/blender/editors/space_userpref/space_userpref.c
branches/soc-2011-onion/source/blender/editors/space_userpref/userpref_intern.h
branches/soc-2011-onion/source/blender/editors/space_userpref/userpref_ops.c
branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_buttons.c
branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_intern.h
branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_parametrizer.c
branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_parametrizer.h
branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_unwrap_ops.c
branches/soc-2011-onion/source/blender/gpu/GPU_buffers.h
branches/soc-2011-onion/source/blender/makesdna/DNA_outliner_types.h
branches/soc-2011-onion/source/blender/makesrna/intern/rna_sculpt_paint.c
Property changes on: branches/soc-2011-onion
___________________________________________________________________
Added: svn:mergeinfo
+ /trunk/blender:36834-36865
Modified: branches/soc-2011-onion/CMakeLists.txt
===================================================================
--- branches/soc-2011-onion/CMakeLists.txt 2011-05-24 13:59:27 UTC (rev 36866)
+++ branches/soc-2011-onion/CMakeLists.txt 2011-05-24 14:06:44 UTC (rev 36867)
@@ -55,33 +55,19 @@
# quiet output for Makefiles, 'make -s' helps too
# set_property(GLOBAL PROPERTY RULE_MESSAGES OFF)
-# ignore system set flag, use our own
-# must be before project(...)
-# if the user wants to add their own its ok after first run.
-if(DEFINED CMAKE_C_STANDARD_LIBRARIES)
- set(_reset_standard_libraries OFF)
-else()
- set(_reset_standard_libraries ON)
-endif()
+#-----------------------------------------------------------------------------
+# Load some macros.
+include(build_files/cmake/macros.cmake)
-project(Blender)
+#-----------------------------------------------------------------------------
+# Initialize project.
+blender_project_hack_pre()
-if (_reset_standard_libraries)
- # Must come after project(...)
- #
- # MINGW workaround for -ladvapi32 being included which surprisingly causes
- # string formatting of floats, eg: printf("%.*f", 3, value). to crash blender
- # with a meaningless stack trace. by overriding this flag we ensure we only
- # have libs we define and that cmake & scons builds match.
- set(CMAKE_C_STANDARD_LIBRARIES "" CACHE STRING "" FORCE)
- set(CMAKE_CXX_STANDARD_LIBRARIES "" CACHE STRING "" FORCE)
- mark_as_advanced(CMAKE_C_STANDARD_LIBRARIES)
- mark_as_advanced(CMAKE_CXX_STANDARD_LIBRARIES)
-endif()
-unset(_reset_standard_libraries)
+project(Blender)
+blender_project_hack_post()
enable_testing()
@@ -92,10 +78,6 @@
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib CACHE INTERNAL "" FORCE )
#-----------------------------------------------------------------------------
-# Load some macros.
-include(build_files/cmake/macros.cmake)
-
-#-----------------------------------------------------------------------------
# Set default config options
get_blender_version()
@@ -984,6 +966,12 @@
#-----------------------------------------------------------------------------
# Common.
+if(APPLE OR WIN32)
+ if(NOT IS_DIRECTORY "${LIBDIR}")
+ message(FATAL_ERROR "Apple and Windows require pre-compiled libs at: '${LIBDIR}'")
+ endif()
+endif()
+
if(WITH_RAYOPTIMIZATION)
if(CMAKE_COMPILER_IS_GNUCC)
if(SUPPORT_SSE_BUILD)
@@ -1144,9 +1132,9 @@
#-------------------------------------------------------------------------------
# Global Defines
-# better not define flags here but this is a debugging option thats off by default.
+# better not set includes here but this debugging option is off by default.
if(WITH_CXX_GUARDEDALLOC)
- set(CMAKE_CXX_FLAGS " -DWITH_CXX_GUARDEDALLOC -I${CMAKE_SOURCE_DIR}/intern/guardedalloc ${CMAKE_CXX_FLAGS}")
+ include_directories(${CMAKE_SOURCE_DIR}/intern/guardedalloc)
endif()
if(WITH_ASSERT_ABORT)
Modified: branches/soc-2011-onion/build_files/cmake/macros.cmake
===================================================================
--- branches/soc-2011-onion/build_files/cmake/macros.cmake 2011-05-24 13:59:27 UTC (rev 36866)
+++ branches/soc-2011-onion/build_files/cmake/macros.cmake 2011-05-24 14:06:44 UTC (rev 36867)
@@ -388,3 +388,71 @@
# message(STATUS "Version (Internal): ${BLENDER_VERSION}.${BLENDER_SUBVERSION}, Version (external): ${BLENDER_VERSION}${BLENDER_VERSION_CHAR}-${BLENDER_VERSION_CYCLE}")
endmacro()
+
+
+# hacks to override initial project settings
+# these macros must be called directly before/after project(Blender)
+macro(blender_project_hack_pre)
+ # ----------------
+ # MINGW HACK START
+ # ignore system set flag, use our own
+ # must be before project(...)
+ # if the user wants to add their own its ok after first run.
+ if(DEFINED CMAKE_C_STANDARD_LIBRARIES)
+ set(_reset_standard_libraries OFF)
+ else()
+ set(_reset_standard_libraries ON)
+ endif()
+
+ # ------------------
+ # GCC -O3 HACK START
+ # needed because O3 can cause problems but
+ # allow the builder to set O3 manually after.
+ if(DEFINED CMAKE_C_FLAGS_RELEASE)
+ set(_reset_standard_cflags_rel OFF)
+ else()
+ set(_reset_standard_cflags_rel ON)
+ endif()
+ if(DEFINED CMAKE_CXX_FLAGS_RELEASE)
+ set(_reset_standard_cxxflags_rel OFF)
+ else()
+ set(_reset_standard_cxxflags_rel ON)
+ endif()
+endmacro()
+
+
+macro(blender_project_hack_post)
+ # --------------
+ # MINGW HACK END
+ if (_reset_standard_libraries)
+ # Must come after project(...)
+ #
+ # MINGW workaround for -ladvapi32 being included which surprisingly causes
+ # string formatting of floats, eg: printf("%.*f", 3, value). to crash blender
+ # with a meaningless stack trace. by overriding this flag we ensure we only
+ # have libs we define and that cmake & scons builds match.
+ set(CMAKE_C_STANDARD_LIBRARIES "" CACHE STRING "" FORCE)
+ set(CMAKE_CXX_STANDARD_LIBRARIES "" CACHE STRING "" FORCE)
+ mark_as_advanced(CMAKE_C_STANDARD_LIBRARIES)
+ mark_as_advanced(CMAKE_CXX_STANDARD_LIBRARIES)
+ endif()
+ unset(_reset_standard_libraries)
+
+
+ # ----------------
+ # GCC -O3 HACK END
+ if(_reset_standard_cflags_rel)
+ string(REGEX REPLACE "-O3" "-O2" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
+ set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}" CACHE STRING "" FORCE)
+ mark_as_advanced(CMAKE_C_FLAGS_RELEASE)
+ endif()
+
+ if(_reset_standard_cxxflags_rel)
+ string(REGEX REPLACE "-O3" "-O2" CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
+ set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}" CACHE STRING "" FORCE)
+ mark_as_advanced(CMAKE_CXX_FLAGS_RELEASE)
+ endif()
+
+ unset(_reset_standard_cflags_rel)
+ unset(_reset_standard_cxxflags_rel)
+endmacro()
Modified: branches/soc-2011-onion/intern/bsp/CMakeLists.txt
===================================================================
--- branches/soc-2011-onion/intern/bsp/CMakeLists.txt 2011-05-24 13:59:27 UTC (rev 36866)
+++ branches/soc-2011-onion/intern/bsp/CMakeLists.txt 2011-05-24 14:06:44 UTC (rev 36867)
@@ -27,6 +27,7 @@
set(INC
./intern
../container
+ ../guardedalloc
../moto/include
../memutil
)
Modified: branches/soc-2011-onion/intern/bsp/SConscript
===================================================================
--- branches/soc-2011-onion/intern/bsp/SConscript 2011-05-24 13:59:27 UTC (rev 36866)
+++ branches/soc-2011-onion/intern/bsp/SConscript 2011-05-24 14:06:44 UTC (rev 36867)
@@ -3,7 +3,7 @@
sources = env.Glob('intern/*.cpp')
-incs = 'intern ../container ../moto/include ../memutil'
+incs = 'intern ../container ../moto/include ../memutil ../guardedalloc'
env.BlenderLib ('bf_intern_bsp', sources, Split(incs), [], libtype=['core','player'], priority=[200,100] )
Modified: branches/soc-2011-onion/intern/container/CTR_TaggedIndex.h
===================================================================
--- branches/soc-2011-onion/intern/container/CTR_TaggedIndex.h 2011-05-24 13:59:27 UTC (rev 36866)
+++ branches/soc-2011-onion/intern/container/CTR_TaggedIndex.h 2011-05-24 14:06:44 UTC (rev 36867)
@@ -52,6 +52,8 @@
#include <functional>
+#include "MEM_sys_types.h"
+
enum {
empty_tag = 0x0,
@@ -100,9 +102,9 @@
#if defined(_WIN64)
CTR_TaggedIndex(
- const unsigned __int64 val
+ const uint64_t val
) :
- m_val ( ((unsigned __int64)val & index_mask)
+ m_val ( ((uint64_t)val & index_mask)
| ( (empty_tag << tag_shift)
& (~index_mask) ) ) {
}
@@ -140,8 +142,8 @@
}
#if defined(_WIN64)
- operator unsigned __int64 () const {
- return (unsigned __int64)(m_val & index_mask);
+ operator uint64_t () const {
+ return (uint64_t)(m_val & index_mask);
}
#endif
Modified: branches/soc-2011-onion/intern/decimation/CMakeLists.txt
===================================================================
--- branches/soc-2011-onion/intern/decimation/CMakeLists.txt 2011-05-24 13:59:27 UTC (rev 36866)
+++ branches/soc-2011-onion/intern/decimation/CMakeLists.txt 2011-05-24 14:06:44 UTC (rev 36867)
@@ -27,6 +27,7 @@
set(INC
.
../container
+ ../guardedalloc
../memutil
../moto/include
)
Modified: branches/soc-2011-onion/intern/decimation/SConscript
===================================================================
--- branches/soc-2011-onion/intern/decimation/SConscript 2011-05-24 13:59:27 UTC (rev 36866)
+++ branches/soc-2011-onion/intern/decimation/SConscript 2011-05-24 14:06:44 UTC (rev 36867)
@@ -3,6 +3,6 @@
sources = env.Glob('intern/*.cpp')
-incs = '. ../moto/include ../container ../memutil'
+incs = '. ../moto/include ../container ../memutil ../guardedalloc'
env.BlenderLib ('bf_intern_decimate', sources, Split(incs) , [], libtype=['core', 'player'], priority = [200, 100] )
Modified: branches/soc-2011-onion/intern/ghost/intern/GHOST_WindowCocoa.mm
===================================================================
--- branches/soc-2011-onion/intern/ghost/intern/GHOST_WindowCocoa.mm 2011-05-24 13:59:27 UTC (rev 36866)
+++ branches/soc-2011-onion/intern/ghost/intern/GHOST_WindowCocoa.mm 2011-05-24 14:06:44 UTC (rev 36867)
@@ -461,9 +461,13 @@
GHOST_WindowCocoa::~GHOST_WindowCocoa()
{
- if (m_customCursor) delete m_customCursor;
+ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+ if (m_customCursor) {
+ [m_customCursor release];
+ m_customCursor = nil;
+ }
+
[m_openGLView release];
if (m_window) {
Property changes on: branches/soc-2011-onion/release/scripts/modules/bpy/ops.py
___________________________________________________________________
Deleted: svn:mergeinfo
-
Property changes on: branches/soc-2011-onion/release/scripts/modules/bpy/utils.py
___________________________________________________________________
Deleted: svn:mergeinfo
-
Modified: branches/soc-2011-onion/release/scripts/modules/bpy_extras/io_utils.py
===================================================================
--- branches/soc-2011-onion/release/scripts/modules/bpy_extras/io_utils.py 2011-05-24 13:59:27 UTC (rev 36866)
+++ branches/soc-2011-onion/release/scripts/modules/bpy_extras/io_utils.py 2011-05-24 14:06:44 UTC (rev 36867)
@@ -101,29 +101,29 @@
# where all 4 values are or'd into a single value...
# (i1<<0 | i1<<3 | i1<<6 | i1<<9)
_axis_convert_lut = (
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-blender-cvs
mailing list