[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60652] trunk/blender/source/blender: style cleanup

Campbell Barton ideasman42 at gmail.com
Wed Oct 9 23:19:25 CEST 2013


Revision: 60652
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60652
Author:   campbellbarton
Date:     2013-10-09 21:19:25 +0000 (Wed, 09 Oct 2013)
Log Message:
-----------
style cleanup

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/intern/pbvh_bmesh.c
    trunk/blender/source/blender/imbuf/intern/filetype.c
    trunk/blender/source/blender/imbuf/intern/oiio/openimageio_api.cpp
    trunk/blender/source/blender/imbuf/intern/oiio/openimageio_api.h
    trunk/blender/source/blender/windowmanager/intern/wm_files.c

Modified: trunk/blender/source/blender/blenkernel/intern/pbvh_bmesh.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/pbvh_bmesh.c	2013-10-09 20:56:38 UTC (rev 60651)
+++ trunk/blender/source/blender/blenkernel/intern/pbvh_bmesh.c	2013-10-09 21:19:25 UTC (rev 60652)
@@ -692,7 +692,7 @@
 	if (cd_vert_mask_offset != -1) {
 		float mask_v1 = BM_ELEM_CD_GET_FLOAT(e->v1, cd_vert_mask_offset);
 		float mask_v2 = BM_ELEM_CD_GET_FLOAT(e->v2, cd_vert_mask_offset);
-		float mask_v_new = 0.5f*(mask_v1 + mask_v2);
+		float mask_v_new = 0.5f * (mask_v1 + mask_v2);
 
 		BM_ELEM_CD_SET_FLOAT(v_new, cd_vert_mask_offset, mask_v_new);
 	}

Modified: trunk/blender/source/blender/imbuf/intern/filetype.c
===================================================================
--- trunk/blender/source/blender/imbuf/intern/filetype.c	2013-10-09 20:56:38 UTC (rev 60651)
+++ trunk/blender/source/blender/imbuf/intern/filetype.c	2013-10-09 21:19:25 UTC (rev 60652)
@@ -108,7 +108,7 @@
 	{NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0}
 };
 
-ImFileType *IMB_FILE_TYPES_LAST = &IMB_FILE_TYPES[sizeof(IMB_FILE_TYPES)/sizeof(ImFileType)-1];
+ImFileType *IMB_FILE_TYPES_LAST = &IMB_FILE_TYPES[sizeof(IMB_FILE_TYPES) / sizeof(ImFileType) - 1];
 
 void imb_filetypes_init(void)
 {

Modified: trunk/blender/source/blender/imbuf/intern/oiio/openimageio_api.cpp
===================================================================
--- trunk/blender/source/blender/imbuf/intern/oiio/openimageio_api.cpp	2013-10-09 20:56:38 UTC (rev 60651)
+++ trunk/blender/source/blender/imbuf/intern/oiio/openimageio_api.cpp	2013-10-09 21:19:25 UTC (rev 60652)
@@ -25,7 +25,7 @@
  * ***** END GPL LICENSE BLOCK *****
  */
 
-/** \file blender/imbuf/intern/oiio/openimageio_api.h
+/** \file blender/imbuf/intern/oiio/openimageio_api.cpp
  *  \ingroup openimageio
  */
 

Modified: trunk/blender/source/blender/imbuf/intern/oiio/openimageio_api.h
===================================================================
--- trunk/blender/source/blender/imbuf/intern/oiio/openimageio_api.h	2013-10-09 20:56:38 UTC (rev 60651)
+++ trunk/blender/source/blender/imbuf/intern/oiio/openimageio_api.h	2013-10-09 21:19:25 UTC (rev 60652)
@@ -30,8 +30,8 @@
  */
 
 
-#ifndef __OIIO_API_H__
-#define __OIIO_API_H__
+#ifndef __OPENIMAGEIO_API_H__
+#define __OPENIMAGEIO_API_H__
 
 #ifdef __cplusplus
 extern "C" {
@@ -50,4 +50,4 @@
 
 #endif
 
-#endif /* __OIIO_API_H */
+#endif  /* __OPENIMAGEIO_API_H__ */

Modified: trunk/blender/source/blender/windowmanager/intern/wm_files.c
===================================================================
--- trunk/blender/source/blender/windowmanager/intern/wm_files.c	2013-10-09 20:56:38 UTC (rev 60651)
+++ trunk/blender/source/blender/windowmanager/intern/wm_files.c	2013-10-09 21:19:25 UTC (rev 60652)
@@ -865,7 +865,7 @@
 
 	/* first time saving */
 	/* XXX temp solution to solve bug, real fix coming (ton) */
-	if ((G.main->name[0] == '\0' && !(fileflags & G_FILE_SAVE_COPY))) {
+	if ((G.main->name[0] == '\0') && !(fileflags & G_FILE_SAVE_COPY)) {
 		BLI_strncpy(G.main->name, filepath, sizeof(G.main->name));
 	}
 




More information about the Bf-blender-cvs mailing list