diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-31 04:59:17 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-31 04:59:17 +0400 |
commit | 5b88712ff932fcbcd0bb0fb257e8e9c2e247a82a (patch) | |
tree | ca0f15ee78fee5aef80ebf5c0f9f46529b65a9e2 /source/blender/collada/DocumentImporter.cpp | |
parent | ebb229110e4af5d2df5613b6345da2f602b90092 (diff) |
move debug flag into its own global var (G.debug), split up debug options.
--debug
--debug-ffmpeg
--debug-python
--debug-events
--debug-wm
This makes debug output easier to read - event debug prints would flood output too much before.
For convenience:
--debug-all turns all debug flags on (works as --debug did before).
also removed some redundant whitespace in debug prints and prefix some prints with __func__ to give some context.
Diffstat (limited to 'source/blender/collada/DocumentImporter.cpp')
-rw-r--r-- | source/blender/collada/DocumentImporter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/collada/DocumentImporter.cpp b/source/blender/collada/DocumentImporter.cpp index 18e421779cc..bc0606107ab 100644 --- a/source/blender/collada/DocumentImporter.cpp +++ b/source/blender/collada/DocumentImporter.cpp @@ -312,7 +312,7 @@ Object* DocumentImporter::create_lamp_object(COLLADAFW::InstanceLight *lamp, Sce { const COLLADAFW::UniqueId& lamp_uid = lamp->getInstanciatedObjectId(); if (uid_lamp_map.find(lamp_uid) == uid_lamp_map.end()) { - fprintf(stderr, "Couldn't find lamp by UID. \n"); + fprintf(stderr, "Couldn't find lamp by UID.\n"); return NULL; } Object *ob = add_object(sce, OB_LAMP); @@ -782,7 +782,7 @@ bool DocumentImporter::writeCamera( const COLLADAFW::Camera* camera ) else cam = (Camera*)add_camera((char*)cam_id.c_str()); if (!cam) { - fprintf(stderr, "Cannot create camera. \n"); + fprintf(stderr, "Cannot create camera.\n"); return true; } cam->clipsta = camera->getNearClippingPlane().getValue(); @@ -802,7 +802,7 @@ bool DocumentImporter::writeCamera( const COLLADAFW::Camera* camera ) break; case COLLADAFW::Camera::UNDEFINED_CAMERATYPE: { - fprintf(stderr, "Current camera type is not supported. \n"); + fprintf(stderr, "Current camera type is not supported.\n"); cam->type = CAM_PERSP; } break; @@ -899,7 +899,7 @@ bool DocumentImporter::writeImage( const COLLADAFW::Image* image ) BLI_join_dirfile(full_path, sizeof(full_path), dir, filepath.c_str()); Image *ima = BKE_add_image_file(full_path); if (!ima) { - fprintf(stderr, "Cannot create image. \n"); + fprintf(stderr, "Cannot create image.\n"); return true; } this->uid_image_map[image->getUniqueId()] = ima; @@ -929,7 +929,7 @@ bool DocumentImporter::writeLight( const COLLADAFW::Light* light ) else lamp = (Lamp*)add_lamp((char*)la_id.c_str()); if (!lamp) { - fprintf(stderr, "Cannot create lamp. \n"); + fprintf(stderr, "Cannot create lamp.\n"); return true; } @@ -1069,7 +1069,7 @@ bool DocumentImporter::writeLight( const COLLADAFW::Light* light ) break; case COLLADAFW::Light::UNDEFINED: { - fprintf(stderr, "Current lamp type is not supported. \n"); + fprintf(stderr, "Current lamp type is not supported.\n"); lamp->type = LA_LOCAL; } break; |