Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build process updates .blend files in a special directory.
This means that updating the Blender version doesn't mess up version control of the files. Also, the build process has been cleaned up a little to make better use of make's ability to recognise files that have changed.
- Loading branch information
Alex Fraser
committed
Feb 13, 2014
1 parent
3395e3b
commit 16d8ead
Showing
4 changed files
with
89 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,4 @@ OutdoorsBase_grass.blend | |
|
||
*~ | ||
build | ||
VERSION.txt | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
import sys | ||
|
||
import bpy | ||
|
||
bpy.ops.wm.save_mainfile(filepath=bpy.context.blend_data.filepath) | ||
bpy.ops.wm.quit_blender() | ||
try: | ||
arg_separator = sys.argv.index('--') | ||
output_path = sys.argv[arg_separator + 1] | ||
except ValueError: | ||
print('Saving over current file') | ||
output_path = bpy.context.blend_data.filepath | ||
|
||
bpy.ops.wm.save_mainfile(filepath=output_path) | ||
bpy.ops.wm.quit_blender() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters