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 | |
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')
-rw-r--r-- | source/blender/collada/AnimationImporter.cpp | 2 | ||||
-rw-r--r-- | source/blender/collada/DocumentImporter.cpp | 12 | ||||
-rw-r--r-- | source/blender/collada/ImageExporter.cpp | 2 | ||||
-rw-r--r-- | source/blender/collada/MeshImporter.cpp | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/collada/AnimationImporter.cpp b/source/blender/collada/AnimationImporter.cpp index 3f132eb4212..e0079fbb8a0 100644 --- a/source/blender/collada/AnimationImporter.cpp +++ b/source/blender/collada/AnimationImporter.cpp @@ -261,7 +261,7 @@ bool AnimationImporter::write_animation(const COLLADAFW::Animation* anim) // XXX Don't know if it's necessary // Should we check outPhysicalDimension? if (curve->getInPhysicalDimension() != COLLADAFW::PHYSICAL_DIMENSION_TIME) { - fprintf(stderr, "Inputs physical dimension is not time. \n"); + fprintf(stderr, "Inputs physical dimension is not time.\n"); return true; } 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; diff --git a/source/blender/collada/ImageExporter.cpp b/source/blender/collada/ImageExporter.cpp index 3775a63c71d..946effda832 100644 --- a/source/blender/collada/ImageExporter.cpp +++ b/source/blender/collada/ImageExporter.cpp @@ -109,7 +109,7 @@ void ImagesExporter::operator()(Material *ma, Object *ob) BLI_make_existing_file(abs); if (BLI_copy(src, abs) != 0) { - fprintf(stderr, "Cannot copy image to file's directory. \n"); + fprintf(stderr, "Cannot copy image to file's directory.\n"); } } diff --git a/source/blender/collada/MeshImporter.cpp b/source/blender/collada/MeshImporter.cpp index 1c83f0c4081..5c01c31bd0d 100644 --- a/source/blender/collada/MeshImporter.cpp +++ b/source/blender/collada/MeshImporter.cpp @@ -180,7 +180,7 @@ void MeshImporter::set_face_indices(MFace *mface, unsigned int *indices, bool qu if (quad) mface->v4 = indices[3]; else mface->v4 = 0; #ifdef COLLADA_DEBUG - // fprintf(stderr, "%u, %u, %u \n", indices[0], indices[1], indices[2]); + // fprintf(stderr, "%u, %u, %u\n", indices[0], indices[1], indices[2]); #endif } |