Blender Git Loki
Git Commits -> Revision 4d37cf9
Revision 4d37cf9 by Campbell Barton (master) October 18, 2010, 06:41 (GMT) |
remove G.sce, use G.main->name instead. Both stored the filename of the blend file, but G.sce stored the last opened file. This will make blender act differently in some cases since a relative path to the last opened file will no longer resolve (which is correct IMHO since that file isnt open and the path might not even be valid anymore). Tested linking with durian files and rendering to relative paths when no files is loaded however we may need to have some operators give an error if they are used on the default startup.blend. |
Commit Details:
Full Hash: 4d37cf90b9d9d8ed2f0339c8ccd72481e29a4514
SVN Revision: 32551
Parent Commit: b3afc36
Lines Changed: +147, -148
49 Modified Paths:
/source/blender/blenkernel/BKE_global.h (+2, -2) (Diff)
/source/blender/blenkernel/intern/blender.c (+5, -8) (Diff)
/source/blender/blenkernel/intern/customdata.c (+2, -1) (Diff)
/source/blender/blenkernel/intern/image.c (+8, -8) (Diff)
/source/blender/blenkernel/intern/library.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/packedFile.c (+3, -3) (Diff)
/source/blender/blenkernel/intern/particle_system.c (+2, -1) (Diff)
/source/blender/blenkernel/intern/pointcache.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/scene.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/sequencer.c (+6, -6) (Diff)
/source/blender/blenkernel/intern/sound.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/text.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/writeavi.c (+2, -1) (Diff)
/source/blender/blenkernel/intern/writeffmpeg.c (+1, -1) (Diff)
/source/blender/blenlib/BLI_bpath.h (+1, -1) (Diff)
/source/blender/blenlib/intern/bpath.c (+1, -1) (Diff)
/source/blender/blenloader/intern/readfile.c (+6, -6) (Diff)
/source/blender/blenloader/intern/writefile.c (+3, -3) (Diff)
/source/blender/collada/ImageExporter.cpp (+3, -2) (Diff)
/source/blender/editors/interface/interface_draw.c (+1, -1) (Diff)
/source/blender/editors/object/object_modifier.c (+1, -1) (Diff)
/source/blender/editors/physics/physics_fluid.c (+3, -3) (Diff)
/source/blender/editors/render/render_preview.c (+2, -2) (Diff)
/source/blender/editors/render/render_shading.c (+3, -3) (Diff)
/source/blender/editors/screen/screendump.c (+2, -1) (Diff)
/source/blender/editors/space_buttons/buttons_ops.c (+2, -1) (Diff)
/source/blender/editors/space_file/filelist.c (+4, -4) (Diff)
/source/blender/editors/space_file/filesel.c (+4, -3) (Diff)
/source/blender/editors/space_file/file_draw.c (+3, -2) (Diff)
/source/blender/editors/space_file/file_ops.c (+8, -7) (Diff)
/source/blender/editors/space_file/writeimage.c (+3, -2) (Diff)
/source/blender/editors/space_image/image_ops.c (+6, -6) (Diff)
/source/blender/editors/space_info/info_ops.c (+4, -4) (Diff)
/source/blender/editors/space_outliner/outliner.c (+1, -1) (Diff)
/source/blender/editors/space_sequencer/sequencer_add.c (+2, -2) (Diff)
/source/blender/editors/space_sequencer/sequencer_edit.c (+1, -1) (Diff)
/source/blender/editors/space_text/text_ops.c (+6, -6) (Diff)
/source/blender/makesrna/intern/rna_image_api.c (+2, -2) (Diff)
/source/blender/modifiers/intern/MOD_fluidsim_util.c (+3, -2) (Diff)
/source/blender/python/generic/bpy_internal_import.c (+2, -2) (Diff)
/source/blender/quicktime/apple/quicktime_export.c (+1, -1) (Diff)
/source/blender/render/intern/source/pipeline.c (+2, -2) (Diff)
/source/blender/windowmanager/intern/wm_files.c (+7, -16) (Diff)
/source/blender/windowmanager/intern/wm_init_exit.c (+3, -3) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+5, -5) (Diff)
/source/blender/windowmanager/intern/wm_window.c (+5, -6) (Diff)
/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp (+5, -5) (Diff)
/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp (+2, -1) (Diff)
/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp (+2, -2) (Diff)
/source/blender/blenkernel/intern/blender.c (+5, -8) (Diff)
/source/blender/blenkernel/intern/customdata.c (+2, -1) (Diff)
/source/blender/blenkernel/intern/image.c (+8, -8) (Diff)
/source/blender/blenkernel/intern/library.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/packedFile.c (+3, -3) (Diff)
/source/blender/blenkernel/intern/particle_system.c (+2, -1) (Diff)
/source/blender/blenkernel/intern/pointcache.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/scene.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/sequencer.c (+6, -6) (Diff)
/source/blender/blenkernel/intern/sound.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/text.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/writeavi.c (+2, -1) (Diff)
/source/blender/blenkernel/intern/writeffmpeg.c (+1, -1) (Diff)
/source/blender/blenlib/BLI_bpath.h (+1, -1) (Diff)
/source/blender/blenlib/intern/bpath.c (+1, -1) (Diff)
/source/blender/blenloader/intern/readfile.c (+6, -6) (Diff)
/source/blender/blenloader/intern/writefile.c (+3, -3) (Diff)
/source/blender/collada/ImageExporter.cpp (+3, -2) (Diff)
/source/blender/editors/interface/interface_draw.c (+1, -1) (Diff)
/source/blender/editors/object/object_modifier.c (+1, -1) (Diff)
/source/blender/editors/physics/physics_fluid.c (+3, -3) (Diff)
/source/blender/editors/render/render_preview.c (+2, -2) (Diff)
/source/blender/editors/render/render_shading.c (+3, -3) (Diff)
/source/blender/editors/screen/screendump.c (+2, -1) (Diff)
/source/blender/editors/space_buttons/buttons_ops.c (+2, -1) (Diff)
/source/blender/editors/space_file/filelist.c (+4, -4) (Diff)
/source/blender/editors/space_file/filesel.c (+4, -3) (Diff)
/source/blender/editors/space_file/file_draw.c (+3, -2) (Diff)
/source/blender/editors/space_file/file_ops.c (+8, -7) (Diff)
/source/blender/editors/space_file/writeimage.c (+3, -2) (Diff)
/source/blender/editors/space_image/image_ops.c (+6, -6) (Diff)
/source/blender/editors/space_info/info_ops.c (+4, -4) (Diff)
/source/blender/editors/space_outliner/outliner.c (+1, -1) (Diff)
/source/blender/editors/space_sequencer/sequencer_add.c (+2, -2) (Diff)
/source/blender/editors/space_sequencer/sequencer_edit.c (+1, -1) (Diff)
/source/blender/editors/space_text/text_ops.c (+6, -6) (Diff)
/source/blender/makesrna/intern/rna_image_api.c (+2, -2) (Diff)
/source/blender/modifiers/intern/MOD_fluidsim_util.c (+3, -2) (Diff)
/source/blender/python/generic/bpy_internal_import.c (+2, -2) (Diff)
/source/blender/quicktime/apple/quicktime_export.c (+1, -1) (Diff)
/source/blender/render/intern/source/pipeline.c (+2, -2) (Diff)
/source/blender/windowmanager/intern/wm_files.c (+7, -16) (Diff)
/source/blender/windowmanager/intern/wm_init_exit.c (+3, -3) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+5, -5) (Diff)
/source/blender/windowmanager/intern/wm_window.c (+5, -6) (Diff)
/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp (+5, -5) (Diff)
/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp (+2, -1) (Diff)
/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp (+2, -2) (Diff)