Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Unified Diff: converter/cross/converter.cc

Issue 149236: Add o3djs.DestinationBuffer to converter.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | core/cross/object_base.h » ('j') | core/cross/object_base.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: converter/cross/converter.cc
===================================================================
--- converter/cross/converter.cc (revision 19848)
+++ converter/cross/converter.cc (working copy)
@@ -94,6 +94,7 @@
ErrorStatus error_status(&service_locator);
Features features(&service_locator);
+ Collada::Init(&service_locator);
features.Init("MaxCapabilities");
// Collect error messages.
@@ -119,7 +120,8 @@
collada_options.base_path = options.base_path;
collada_options.up_axis = options.up_axis;
Collada collada(pack.Get(), collada_options);
- if (!collada.ImportFile(in_filename, root, param_float)) {
+ bool result = collada.ImportFile(in_filename, root, param_float);
+ if (!result || !error_collector.errors().empty()) {
if (error_messages) {
*error_messages += error_collector.errors();
}
« no previous file with comments | « no previous file | core/cross/object_base.h » ('j') | core/cross/object_base.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698