[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [59561] branches/asset-browser: Merged revision(s) 59436-59558 from trunk/blender

Andrea Weikert elubie at gmx.net
Tue Aug 27 20:46:18 CEST 2013


Revision: 59561
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59561
Author:   elubie
Date:     2013-08-27 18:46:18 +0000 (Tue, 27 Aug 2013)
Log Message:
-----------
Merged revision(s) 59436-59558 from trunk/blender

Modified Paths:
--------------
    branches/asset-browser/CMakeLists.txt
    branches/asset-browser/GNUmakefile
    branches/asset-browser/build_files/cmake/macros.cmake
    branches/asset-browser/intern/CMakeLists.txt
    branches/asset-browser/intern/cycles/CMakeLists.txt
    branches/asset-browser/intern/cycles/app/CMakeLists.txt
    branches/asset-browser/intern/cycles/blender/addon/ui.py
    branches/asset-browser/intern/cycles/blender/blender_sync.cpp
    branches/asset-browser/intern/cycles/cmake/external_libs.cmake
    branches/asset-browser/intern/cycles/kernel/CMakeLists.txt
    branches/asset-browser/intern/cycles/kernel/kernel_jitter.h
    branches/asset-browser/intern/cycles/kernel/kernel_path.h
    branches/asset-browser/intern/cycles/kernel/kernel_subsurface.h
    branches/asset-browser/intern/cycles/kernel/kernel_types.h
    branches/asset-browser/intern/cycles/render/osl.cpp
    branches/asset-browser/intern/cycles/util/CMakeLists.txt
    branches/asset-browser/intern/guardedalloc/CMakeLists.txt
    branches/asset-browser/release/datafiles/blender_icons.sh
    branches/asset-browser/release/datafiles/blender_icons.svg
    branches/asset-browser/release/datafiles/blender_icons16.png
    branches/asset-browser/release/datafiles/blender_icons32.png
    branches/asset-browser/release/datafiles/prvicons.png
    branches/asset-browser/release/datafiles/prvicons.sh
    branches/asset-browser/release/datafiles/prvicons.svg
    branches/asset-browser/release/scripts/modules/rna_info.py
    branches/asset-browser/release/scripts/startup/bl_operators/__init__.py
    branches/asset-browser/release/scripts/startup/bl_operators/add_mesh_torus.py
    branches/asset-browser/release/scripts/startup/bl_ui/properties_constraint.py
    branches/asset-browser/release/scripts/startup/bl_ui/properties_data_armature.py
    branches/asset-browser/release/scripts/startup/bl_ui/properties_data_bone.py
    branches/asset-browser/release/scripts/startup/bl_ui/properties_data_camera.py
    branches/asset-browser/release/scripts/startup/bl_ui/properties_data_mesh.py
    branches/asset-browser/release/scripts/startup/bl_ui/properties_data_modifier.py
    branches/asset-browser/release/scripts/startup/bl_ui/properties_freestyle.py
    branches/asset-browser/release/scripts/startup/bl_ui/properties_mask_common.py
    branches/asset-browser/release/scripts/startup/bl_ui/properties_material.py
    branches/asset-browser/release/scripts/startup/bl_ui/properties_object.py
    branches/asset-browser/release/scripts/startup/bl_ui/properties_particle.py
    branches/asset-browser/release/scripts/startup/bl_ui/properties_physics_common.py
    branches/asset-browser/release/scripts/startup/bl_ui/properties_physics_fluid.py
    branches/asset-browser/release/scripts/startup/bl_ui/properties_physics_rigidbody_constraint.py
    branches/asset-browser/release/scripts/startup/bl_ui/properties_physics_smoke.py
    branches/asset-browser/release/scripts/startup/bl_ui/properties_render.py
    branches/asset-browser/release/scripts/startup/bl_ui/properties_texture.py
    branches/asset-browser/release/scripts/startup/bl_ui/space_clip.py
    branches/asset-browser/release/scripts/startup/bl_ui/space_image.py
    branches/asset-browser/release/scripts/startup/bl_ui/space_outliner.py
    branches/asset-browser/release/scripts/startup/bl_ui/space_sequencer.py
    branches/asset-browser/release/scripts/startup/bl_ui/space_text.py
    branches/asset-browser/release/scripts/startup/bl_ui/space_time.py
    branches/asset-browser/release/scripts/startup/bl_ui/space_userpref.py
    branches/asset-browser/release/scripts/startup/bl_ui/space_view3d.py
    branches/asset-browser/release/scripts/startup/bl_ui/space_view3d_toolbar.py
    branches/asset-browser/source/blender/blenfont/intern/blf_font.c
    branches/asset-browser/source/blender/blenfont/intern/blf_glyph.c
    branches/asset-browser/source/blender/blenkernel/BKE_cloth.h
    branches/asset-browser/source/blender/blenkernel/BKE_node.h
    branches/asset-browser/source/blender/blenkernel/BKE_pbvh.h
    branches/asset-browser/source/blender/blenkernel/CMakeLists.txt
    branches/asset-browser/source/blender/blenkernel/intern/blender.c
    branches/asset-browser/source/blender/blenkernel/intern/cdderivedmesh.c
    branches/asset-browser/source/blender/blenkernel/intern/cloth.c
    branches/asset-browser/source/blender/blenkernel/intern/collision.c
    branches/asset-browser/source/blender/blenkernel/intern/context.c
    branches/asset-browser/source/blender/blenkernel/intern/displist.c
    branches/asset-browser/source/blender/blenkernel/intern/group.c
    branches/asset-browser/source/blender/blenkernel/intern/image.c
    branches/asset-browser/source/blender/blenkernel/intern/key.c
    branches/asset-browser/source/blender/blenkernel/intern/mesh.c
    branches/asset-browser/source/blender/blenkernel/intern/mesh_validate.c
    branches/asset-browser/source/blender/blenkernel/intern/node.c
    branches/asset-browser/source/blender/blenkernel/intern/object.c
    branches/asset-browser/source/blender/blenkernel/intern/object_deform.c
    branches/asset-browser/source/blender/blenkernel/intern/particle_system.c
    branches/asset-browser/source/blender/blenkernel/intern/pbvh.c
    branches/asset-browser/source/blender/blenkernel/intern/pbvh_bmesh.c
    branches/asset-browser/source/blender/blenkernel/intern/pbvh_intern.h
    branches/asset-browser/source/blender/blenkernel/intern/pointcache.c
    branches/asset-browser/source/blender/blenkernel/intern/property.c
    branches/asset-browser/source/blender/blenkernel/intern/sca.c
    branches/asset-browser/source/blender/blenkernel/intern/screen.c
    branches/asset-browser/source/blender/blenkernel/intern/sequencer.c
    branches/asset-browser/source/blender/blenkernel/intern/subsurf_ccg.c
    branches/asset-browser/source/blender/blenlib/BLI_edgehash.h
    branches/asset-browser/source/blender/blenlib/BLI_ghash.h
    branches/asset-browser/source/blender/blenlib/BLI_listbase.h
    branches/asset-browser/source/blender/blenlib/BLI_mempool.h
    branches/asset-browser/source/blender/blenlib/intern/BLI_ghash.c
    branches/asset-browser/source/blender/blenlib/intern/BLI_mempool.c
    branches/asset-browser/source/blender/blenlib/intern/edgehash.c
    branches/asset-browser/source/blender/blenlib/intern/listbase.c
    branches/asset-browser/source/blender/blenloader/intern/readblenentry.c
    branches/asset-browser/source/blender/blenloader/intern/readfile.c
    branches/asset-browser/source/blender/blenloader/intern/undofile.c
    branches/asset-browser/source/blender/blenloader/intern/versioning_legacy.c
    branches/asset-browser/source/blender/bmesh/intern/bmesh_edgeloop.c
    branches/asset-browser/source/blender/bmesh/intern/bmesh_log.c
    branches/asset-browser/source/blender/bmesh/intern/bmesh_mesh.c
    branches/asset-browser/source/blender/bmesh/intern/bmesh_operators.c
    branches/asset-browser/source/blender/bmesh/intern/bmesh_walkers.c
    branches/asset-browser/source/blender/bmesh/intern/bmesh_walkers.h
    branches/asset-browser/source/blender/bmesh/intern/bmesh_walkers_impl.c
    branches/asset-browser/source/blender/bmesh/operators/bmo_beautify.c
    branches/asset-browser/source/blender/bmesh/operators/bmo_hull.c
    branches/asset-browser/source/blender/bmesh/operators/bmo_subdivide_edgering.c
    branches/asset-browser/source/blender/collada/collada.cpp
    branches/asset-browser/source/blender/editors/animation/anim_filter.c
    branches/asset-browser/source/blender/editors/armature/meshlaplacian.c
    branches/asset-browser/source/blender/editors/armature/reeb.c
    branches/asset-browser/source/blender/editors/curve/editcurve.c
    branches/asset-browser/source/blender/editors/datafiles/CMakeLists.txt
    branches/asset-browser/source/blender/editors/gpencil/gpencil_edit.c
    branches/asset-browser/source/blender/editors/gpencil/gpencil_paint.c
    branches/asset-browser/source/blender/editors/include/ED_mask.h
    branches/asset-browser/source/blender/editors/include/ED_uvedit.h
    branches/asset-browser/source/blender/editors/include/UI_icons.h
    branches/asset-browser/source/blender/editors/include/UI_interface.h
    branches/asset-browser/source/blender/editors/include/UI_view2d.h
    branches/asset-browser/source/blender/editors/interface/interface.c
    branches/asset-browser/source/blender/editors/interface/interface_handlers.c
    branches/asset-browser/source/blender/editors/interface/interface_layout.c
    branches/asset-browser/source/blender/editors/interface/interface_templates.c
    branches/asset-browser/source/blender/editors/interface/interface_widgets.c
    branches/asset-browser/source/blender/editors/interface/view2d.c
    branches/asset-browser/source/blender/editors/interface/view2d_ops.c
    branches/asset-browser/source/blender/editors/io/io_collada.c
    branches/asset-browser/source/blender/editors/mask/mask_add.c
    branches/asset-browser/source/blender/editors/mask/mask_edit.c
    branches/asset-browser/source/blender/editors/mask/mask_intern.h
    branches/asset-browser/source/blender/editors/mask/mask_ops.c
    branches/asset-browser/source/blender/editors/mesh/editmesh_tools.c
    branches/asset-browser/source/blender/editors/mesh/meshtools.c
    branches/asset-browser/source/blender/editors/metaball/mball_edit.c
    branches/asset-browser/source/blender/editors/object/object_edit.c
    branches/asset-browser/source/blender/editors/sculpt_paint/paint_hide.c
    branches/asset-browser/source/blender/editors/sculpt_paint/paint_vertex.c
    branches/asset-browser/source/blender/editors/space_clip/clip_draw.c
    branches/asset-browser/source/blender/editors/space_clip/clip_intern.h
    branches/asset-browser/source/blender/editors/space_clip/clip_ops.c
    branches/asset-browser/source/blender/editors/space_clip/space_clip.c
    branches/asset-browser/source/blender/editors/space_file/filesel.c
    branches/asset-browser/source/blender/editors/space_file/space_file.c
    branches/asset-browser/source/blender/editors/space_graph/graph_select.c
    branches/asset-browser/source/blender/editors/space_image/space_image.c
    branches/asset-browser/source/blender/editors/space_node/drawnode.c
    branches/asset-browser/source/blender/editors/space_node/node_add.c
    branches/asset-browser/source/blender/editors/space_node/node_buttons.c
    branches/asset-browser/source/blender/editors/space_node/node_relationships.c
    branches/asset-browser/source/blender/editors/space_outliner/outliner_tools.c
    branches/asset-browser/source/blender/editors/space_outliner/outliner_tree.c
    branches/asset-browser/source/blender/editors/space_outliner/space_outliner.c
    branches/asset-browser/source/blender/editors/space_view3d/drawobject.c
    branches/asset-browser/source/blender/editors/uvedit/uvedit_draw.c
    branches/asset-browser/source/blender/editors/uvedit/uvedit_ops.c
    branches/asset-browser/source/blender/freestyle/intern/application/Controller.cpp
    branches/asset-browser/source/blender/freestyle/intern/application/Controller.h
    branches/asset-browser/source/blender/freestyle/intern/geometry/BBox.h
    branches/asset-browser/source/blender/freestyle/intern/view_map/ViewMapAdvancedIterators.h
    branches/asset-browser/source/blender/gpu/GPU_buffers.h
    branches/asset-browser/source/blender/gpu/intern/gpu_buffers.c
    branches/asset-browser/source/blender/gpu/intern/gpu_codegen.c
    branches/asset-browser/source/blender/makesdna/DNA_object_types.h
    branches/asset-browser/source/blender/makesdna/DNA_screen_types.h
    branches/asset-browser/source/blender/makesdna/DNA_space_types.h
    branches/asset-browser/source/blender/makesdna/intern/dna_genfile.c
    branches/asset-browser/source/blender/makesrna/RNA_access.h
    branches/asset-browser/source/blender/makesrna/RNA_types.h
    branches/asset-browser/source/blender/makesrna/intern/makesrna.c
    branches/asset-browser/source/blender/makesrna/intern/rna_access.c
    branches/asset-browser/source/blender/makesrna/intern/rna_rna.c
    branches/asset-browser/source/blender/makesrna/intern/rna_scene.c
    branches/asset-browser/source/blender/makesrna/intern/rna_ui_api.c
    branches/asset-browser/source/blender/modifiers/intern/MOD_boolean_util.c
    branches/asset-browser/source/blender/modifiers/intern/MOD_boolean_util.h
    branches/asset-browser/source/blender/modifiers/intern/MOD_explode.c
    branches/asset-browser/source/blender/python/bmesh/bmesh_py_types.c
    branches/asset-browser/source/blender/python/intern/bpy_rna.c
    branches/asset-browser/source/blender/render/intern/source/convertblender.c
    branches/asset-browser/source/blender/render/intern/source/rayshade.c
    branches/asset-browser/source/blender/windowmanager/intern/wm.c
    branches/asset-browser/source/blender/windowmanager/intern/wm_cursors.c
    branches/asset-browser/source/blender/windowmanager/intern/wm_event_system.c
    branches/asset-browser/source/blender/windowmanager/intern/wm_operators.c
    branches/asset-browser/source/blenderplayer/bad_level_call_stubs/stubs.c
    branches/asset-browser/source/creator/creator.c
    branches/asset-browser/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
    branches/asset-browser/source/gameengine/GamePlayer/ghost/GPG_Application.cpp
    branches/asset-browser/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
    branches/asset-browser/source/gameengine/Ketsji/KX_PythonInit.cpp

Added Paths:
-----------
    branches/asset-browser/intern/cycles/app/cycles_standalone.cpp
    branches/asset-browser/release/scripts/startup/bl_operators/mask.py
    branches/asset-browser/source/blender/blenkernel/BKE_treehash.h
    branches/asset-browser/source/blender/blenkernel/intern/treehash.c

Removed Paths:
-------------
    branches/asset-browser/intern/cycles/app/cycles_test.cpp

Property Changed:
----------------
    branches/asset-browser/
    branches/asset-browser/source/blender/editors/interface/interface.c
    branches/asset-browser/source/blender/editors/space_outliner/


Property changes on: branches/asset-browser
___________________________________________________________________
Modified: svn:mergeinfo
   - /branches/ge_dev:58091-58422
/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/soc-2011-tomato:42376,42378-42379,42383,42385,42395,42397-42400,42407,42411,42418,42443-42444,42446,42467,42472,42486,42650-42652,42654-42655,42709-42710,42733-42734,42801,43872,44130,44141,44147-44149,44151-44152,44229-44230,45623-45625,46037,48089,48092,48551-48552,48679,48790,48792-48793,49076,49087,49292,49294,49466,49894,50052,50126,52854-52856,54573,58822,58989
/branches/soc-2013-depsgraph_mt:57516,57900,57939-57940,57945,57958-57961,58151,58155-58156,58169,58277-58279,58282-58283,58711,58787,58789,58796,59086-59087,59163,59166,59170,59181,59259-59260
/branches/soc-2013-dingto:57424,57487,57507,57525,57599,57670,57918-57919,57981,58091,58245,58253,58587,58772,58774-58775,58828,58835,59032
/tags/blender-2.67b-release/blender:57122
/trunk/blender:43077-44985,44987-49474,49476-59435
   + /branches/ge_dev:58091-58422
/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/soc-2011-tomato:42376,42378-42379,42383,42385,42395,42397-42400,42407,42411,42418,42443-42444,42446,42467,42472,42486,42650-42652,42654-42655,42709-42710,42733-42734,42801,43872,44130,44141,44147-44149,44151-44152,44229-44230,45623-45625,46037,48089,48092,48551-48552,48679,48790,48792-48793,49076,49087,49292,49294,49466,49894,50052,50126,52854-52856,54573,58822,58989
/branches/soc-2013-depsgraph_mt:57516,57900,57939-57940,57945,57958-57961,58151,58155-58156,58169,58277-58279,58282-58283,58711,58787,58789,58796,59086-59087,59163,59166,59170,59181,59259-59260
/branches/soc-2013-dingto:57424,57487,57507,57525,57599,57670,57918-57919,57981,58091,58245,58253,58587,58772,58774-58775,58828,58835,59032
/tags/blender-2.67b-release/blender:57122
/trunk/blender:43077-44985,44987-49474,49476-59558

Modified: branches/asset-browser/CMakeLists.txt
===================================================================
--- branches/asset-browser/CMakeLists.txt	2013-08-27 18:29:30 UTC (rev 59560)
+++ branches/asset-browser/CMakeLists.txt	2013-08-27 18:46:18 UTC (rev 59561)
@@ -261,7 +261,7 @@
 
 # Cycles
 option(WITH_CYCLES					"Enable cycles Render Engine" ON)
-option(WITH_CYCLES_TEST				"Build cycles test application" OFF)
+option(WITH_CYCLES_STANDALONE		"Build cycles standalone application" OFF)
 option(WITH_CYCLES_OSL				"Build Cycles with OSL support" OFF)
 option(WITH_CYCLES_CUDA_BINARIES	"Build cycles CUDA binaries" OFF)
 set(CYCLES_CUDA_BINARIES_ARCH sm_20 sm_21 sm_30 sm_35 CACHE STRING "CUDA architectures to build binaries for")
@@ -373,7 +373,7 @@
 #-----------------------------------------------------------------------------
 # Check for conflicting/unsupported configurations
 
-if(NOT WITH_BLENDER AND NOT WITH_PLAYER AND NOT WITH_CYCLES_TEST)
+if(NOT WITH_BLENDER AND NOT WITH_PLAYER AND NOT WITH_CYCLES_STANDALONE)
 	message(FATAL_ERROR "At least one of WITH_BLENDER or WITH_PLAYER must be enabled, nothing to do!")
 endif()
 

Modified: branches/asset-browser/GNUmakefile
===================================================================
--- branches/asset-browser/GNUmakefile	2013-08-27 18:29:30 UTC (rev 59560)
+++ branches/asset-browser/GNUmakefile	2013-08-27 18:46:18 UTC (rev 59561)
@@ -184,6 +184,7 @@
 	@echo "  * check_spelling_py    - check for spelling errors (Python only)"
 	@echo ""
 	@echo "Utilities (not associated with building blender)"
+	@echo "  * icons    - updates PNG icons from SVG files."
 	@echo "  * tbz      - create a compressed svn export 'blender_archive.tar.bz2'"
 	@echo ""
 	@echo "Documentation Targets (not associated with building blender)"
@@ -322,7 +323,11 @@
 	rm -rf blender_archive/
 	@echo "blender_archive.tar.bz2 written"
 
+icons:
+	$(BLENDER_DIR)/release/datafiles/blender_icons.sh
+	$(BLENDER_DIR)/release/datafiles/prvicons.sh
 
+
 # -----------------------------------------------------------------------------
 # Documentation
 #

Modified: branches/asset-browser/build_files/cmake/macros.cmake
===================================================================
--- branches/asset-browser/build_files/cmake/macros.cmake	2013-08-27 18:29:30 UTC (rev 59560)
+++ branches/asset-browser/build_files/cmake/macros.cmake	2013-08-27 18:46:18 UTC (rev 59561)
@@ -802,6 +802,7 @@
 
 endmacro()
 
+# XXX Not used for now...
 macro(svg_to_png
       file_from
       file_to
@@ -818,6 +819,15 @@
 	mark_as_advanced(INKSCAPE_EXE)
 
 	if(INKSCAPE_EXE)
+		if(APPLE)
+			# in OS X app bundle, the binary is a shim that doesn't take any
+			# command line arguments, replace it with the actual binary
+			string(REPLACE "MacOS/Inkscape" "Resources/bin/inkscape" INKSCAPE_REAL_EXE ${INKSCAPE_EXE})
+			if(EXISTS "${INKSCAPE_REAL_EXE}")
+				set(INKSCAPE_EXE ${INKSCAPE_REAL_EXE})
+			endif()
+		endif()
+
 		add_custom_command(
 			OUTPUT  ${_file_to}
 			COMMAND ${INKSCAPE_EXE} ${_file_from} --export-dpi=${dpi}  --without-gui --export-png=${_file_to}
@@ -830,4 +840,4 @@
 	unset(_file_from)
 	unset(_file_to)
 
-endmacro()
\ No newline at end of file
+endmacro()

Modified: branches/asset-browser/intern/CMakeLists.txt
===================================================================
--- branches/asset-browser/intern/CMakeLists.txt	2013-08-27 18:29:30 UTC (rev 59560)
+++ branches/asset-browser/intern/CMakeLists.txt	2013-08-27 18:46:18 UTC (rev 59561)
@@ -23,10 +23,10 @@
 #
 # ***** END GPL LICENSE BLOCK *****
 
+# add_subdirectory(atomic)  # header only
 add_subdirectory(string)
 add_subdirectory(ghost)
 add_subdirectory(guardedalloc)
-add_subdirectory(moto)
 add_subdirectory(memutil)
 add_subdirectory(opencolorio)
 add_subdirectory(opennl)
@@ -61,6 +61,10 @@
 	add_subdirectory(itasc)
 endif()
 
+if(WITH_IK_SOLVER OR WITH_GAMEENGINE)
+	add_subdirectory(moto)
+endif()
+
 if(WITH_CYCLES)
 	add_subdirectory(cycles)
 endif()

Modified: branches/asset-browser/intern/cycles/CMakeLists.txt
===================================================================
--- branches/asset-browser/intern/cycles/CMakeLists.txt	2013-08-27 18:29:30 UTC (rev 59560)
+++ branches/asset-browser/intern/cycles/CMakeLists.txt	2013-08-27 18:46:18 UTC (rev 59561)
@@ -76,7 +76,7 @@
 	add_subdirectory(blender)
 endif()
 
-if(WITH_CYCLES_TEST OR WITH_CYCLES_NETWORK)
+if(WITH_CYCLES_STANDALONE OR WITH_CYCLES_NETWORK)
 	add_subdirectory(app)
 endif()
 

Modified: branches/asset-browser/intern/cycles/app/CMakeLists.txt
===================================================================
--- branches/asset-browser/intern/cycles/app/CMakeLists.txt	2013-08-27 18:29:30 UTC (rev 59560)
+++ branches/asset-browser/intern/cycles/app/CMakeLists.txt	2013-08-27 18:46:18 UTC (rev 59561)
@@ -27,7 +27,7 @@
 
 link_directories(${OPENIMAGEIO_LIBPATH} ${BOOST_LIBPATH})
 
-if(WITH_CYCLES_TEST)
+if(WITH_CYCLES_STANDALONE)
 	list(APPEND LIBRARIES ${GLUT_LIBRARIES})
 endif()
 
@@ -38,17 +38,17 @@
 include_directories(${INC})
 include_directories(SYSTEM ${INC_SYS})
 
-if(WITH_CYCLES_TEST)
+if(WITH_CYCLES_STANDALONE)
 	set(SRC
-		cycles_test.cpp
+		cycles_standalone.cpp
 		cycles_xml.cpp
 		cycles_xml.h
 	)
-	add_executable(cycles_test ${SRC})
-	target_link_libraries(cycles_test ${LIBRARIES})
+	add_executable(cycles ${SRC})
+	target_link_libraries(cycles ${LIBRARIES})
 
 	if(UNIX AND NOT APPLE)
-		set_target_properties(cycles_test PROPERTIES INSTALL_RPATH $ORIGIN/lib)
+		set_target_properties(cycles PROPERTIES INSTALL_RPATH $ORIGIN/lib)
 	endif()
 	unset(SRC)
 endif()

Copied: branches/asset-browser/intern/cycles/app/cycles_standalone.cpp (from rev 59558, trunk/blender/intern/cycles/app/cycles_standalone.cpp)
===================================================================
--- branches/asset-browser/intern/cycles/app/cycles_standalone.cpp	                        (rev 0)
+++ branches/asset-browser/intern/cycles/app/cycles_standalone.cpp	2013-08-27 18:46:18 UTC (rev 59561)
@@ -0,0 +1,346 @@
+/*
+ * Copyright 2011-2013 Blender Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
+ */
+
+#include <stdio.h>
+
+#include "buffers.h"
+#include "camera.h"
+#include "device.h"
+#include "scene.h"
+#include "session.h"
+
+#include "util_args.h"
+#include "util_foreach.h"
+#include "util_function.h"
+#include "util_path.h"
+#include "util_progress.h"
+#include "util_string.h"
+#include "util_time.h"
+#include "util_view.h"
+
+#include "cycles_xml.h"
+
+CCL_NAMESPACE_BEGIN
+
+struct Options {
+	Session *session;
+	Scene *scene;
+	string filepath;
+	int width, height;
+	SceneParams scene_params;
+	SessionParams session_params;
+	bool quiet;
+} options;
+
+static void session_print(const string& str)
+{
+	/* print with carriage return to overwrite previous */
+	printf("\r%s", str.c_str());
+
+	/* add spaces to overwrite longer previous print */
+	static int maxlen = 0;
+	int len = str.size();
+	maxlen = max(len, maxlen);
+
+	for(int i = len; i < maxlen; i++)
+		printf(" ");
+
+	/* flush because we don't write an end of line */
+	fflush(stdout);
+}
+
+static void session_print_status()
+{
+	int sample, tile;
+	double total_time, sample_time;
+	string status, substatus;
+
+	/* get status */
+	sample = options.session->progress.get_sample();
+	options.session->progress.get_tile(tile, total_time, sample_time);
+	options.session->progress.get_status(status, substatus);
+
+	if(substatus != "")
+		status += ": " + substatus;
+
+	/* print status */

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list