2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 23:47:43 +00:00

Began migration to MLVL blend representation

This commit is contained in:
Jack Andersen
2015-10-23 15:23:45 -10:00
parent 07392938d8
commit b207db8c27
13 changed files with 159 additions and 47 deletions

View File

@@ -290,18 +290,7 @@ bool MREA::Extract(const SpecBase& dataSpec,
"bpy.ops.object.select_all(action='DESELECT')\n"
"bpy.context.scene.layers[1] = False\n";
/* Center view */
os << "bpy.context.user_preferences.view.smooth_view = 0\n"
"for window in bpy.context.window_manager.windows:\n"
" screen = window.screen\n"
" for area in screen.areas:\n"
" if area.type == 'VIEW_3D':\n"
" for region in area.regions:\n"
" if region.type == 'WINDOW':\n"
" override = {'scene': bpy.context.scene, 'window': window, 'screen': screen, 'area': area, 'region': region}\n"
" bpy.ops.view3d.view_all(override)\n"
" break\n";
os.centerView();
os.close();
return conn.saveBlend();
}