[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54649] trunk/blender/source: minor change to own recent commit with transform fcurve centers and some style edits and typo corrections .

Campbell Barton ideasman42 at gmail.com
Tue Feb 19 03:30:04 CET 2013


Revision: 54649
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54649
Author:   campbellbarton
Date:     2013-02-19 02:30:02 +0000 (Tue, 19 Feb 2013)
Log Message:
-----------
minor change to own recent commit with transform fcurve centers and some style edits and typo corrections.

Modified Paths:
--------------
    trunk/blender/source/blender/blenfont/BLF_translation.h
    trunk/blender/source/blender/bmesh/intern/bmesh_polygon.c
    trunk/blender/source/blender/editors/armature/poseobject.c
    trunk/blender/source/blender/editors/object/object_edit.c
    trunk/blender/source/blender/editors/space_clip/clip_editor.c
    trunk/blender/source/blender/editors/space_image/image_ops.c
    trunk/blender/source/blender/editors/space_text/text_ops.c
    trunk/blender/source/blender/editors/transform/transform_generics.c
    trunk/blender/source/blender/imbuf/intern/dds/dds_api.cpp
    trunk/blender/source/blender/imbuf/intern/iris.c
    trunk/blender/source/blender/python/generic/bpy_internal_import.c
    trunk/blender/source/tools/spell_check_source_config.py

Modified: trunk/blender/source/blender/blenfont/BLF_translation.h
===================================================================
--- trunk/blender/source/blender/blenfont/BLF_translation.h	2013-02-19 02:24:52 UTC (rev 54648)
+++ trunk/blender/source/blender/blenfont/BLF_translation.h	2013-02-19 02:30:02 UTC (rev 54649)
@@ -112,7 +112,7 @@
 
 /* Default, void context.
  * WARNING! The "" context is not the same as no (NULL) context at mo/boost::locale level!
- * NOTE: We translate BLF_I18NCONTEXT_DEFAULT as BLF_I18NCONTEXT_DEFAULT_BPY in Python, as we can’t use "natural"
+ * NOTE: We translate BLF_I18NCONTEXT_DEFAULT as BLF_I18NCONTEXT_DEFAULT_BPY in Python, as we can't use "natural"
  *       None value in rna string properties... :/
  *       For perf reason, we only use the first char to detect this context, so other contexts should never start
  *       with the same char!

Modified: trunk/blender/source/blender/bmesh/intern/bmesh_polygon.c
===================================================================
--- trunk/blender/source/blender/bmesh/intern/bmesh_polygon.c	2013-02-19 02:24:52 UTC (rev 54648)
+++ trunk/blender/source/blender/bmesh/intern/bmesh_polygon.c	2013-02-19 02:30:02 UTC (rev 54649)
@@ -674,7 +674,7 @@
 		i = (((len_squared_v3v3(larr[0]->v->co, larr[2]->v->co) >
 		     len_squared_v3v3(larr[1]->v->co, larr[3]->v->co) * bias)) != use_beauty);
 		i4 = (i + 3) % 4;
-		/* Check produced tris aren’t too flat/narrow...
+		/* Check produced tris aren't too flat/narrow...
 		 * Probably not the best test, but is quite efficient and should at least avoid null-area faces! */
 		cos1 = fabsf(cos_v3v3v3(larr[i4]->v->co, larr[i]->v->co, larr[i + 1]->v->co));
 		cos2 = fabsf(cos_v3v3v3(larr[i4]->v->co, larr[i + 2]->v->co, larr[i + 1]->v->co));
@@ -741,7 +741,8 @@
 				/* Compare to prev best (i.e. lowest) cos. */
 				if (cos < bestcos) {
 					/* We must check this tri would not leave a (too much) degenerated remaining face! */
-					/* For now just assume if the average of cos of all "remaining face"'s corners is below a given threshold, it’s OK. */
+					/* For now just assume if the average of cos of all
+					 * "remaining face"'s corners is below a given threshold, it's OK. */
 					float avgcos = fabsf(cos_v3v3v3(v1->co, v3->co, l_iter->next->next->v->co));
 					const int i_limit = (i - 1 + len) % len;
 					avgcos += fabsf(cos_v3v3v3(l_iter->prev->prev->v->co, v1->co, v3->co));

Modified: trunk/blender/source/blender/editors/armature/poseobject.c
===================================================================
--- trunk/blender/source/blender/editors/armature/poseobject.c	2013-02-19 02:24:52 UTC (rev 54648)
+++ trunk/blender/source/blender/editors/armature/poseobject.c	2013-02-19 02:30:02 UTC (rev 54649)
@@ -238,7 +238,7 @@
 	
 	/* show popup dialog to allow editing of range... */
 	// FIXME: hardcoded dimensions here are just arbitrary
-	return WM_operator_props_dialog_popup(C, op, 10*UI_UNIT_X, 10*UI_UNIT_Y);
+	return WM_operator_props_dialog_popup(C, op, 10 * UI_UNIT_X, 10 * UI_UNIT_Y);
 }
 
 /* For the object with pose/action: create path curves for selected bones 

Modified: trunk/blender/source/blender/editors/object/object_edit.c
===================================================================
--- trunk/blender/source/blender/editors/object/object_edit.c	2013-02-19 02:24:52 UTC (rev 54648)
+++ trunk/blender/source/blender/editors/object/object_edit.c	2013-02-19 02:30:02 UTC (rev 54649)
@@ -1151,7 +1151,7 @@
 	
 	/* show popup dialog to allow editing of range... */
 	/* FIXME: hardcoded dimensions here are just arbitrary */
-	return WM_operator_props_dialog_popup(C, op, 10*UI_UNIT_X, 10*UI_UNIT_Y);
+	return WM_operator_props_dialog_popup(C, op, 10 * UI_UNIT_X, 10 * UI_UNIT_Y);
 }
 
 /* Calculate/recalculate whole paths (avs.path_sf to avs.path_ef) */

Modified: trunk/blender/source/blender/editors/space_clip/clip_editor.c
===================================================================
--- trunk/blender/source/blender/editors/space_clip/clip_editor.c	2013-02-19 02:24:52 UTC (rev 54648)
+++ trunk/blender/source/blender/editors/space_clip/clip_editor.c	2013-02-19 02:30:02 UTC (rev 54649)
@@ -618,7 +618,7 @@
 	context->last_texture = glaGetOneInteger(GL_TEXTURE_2D);
 
 	/* image texture need to be rebinded if displaying another image buffer
-	 * assuming displaying happens of footage frames only on which painting doesn't heppen.
+	 * assuming displaying happens of footage frames only on which painting doesn't happen.
 	 * so not changed image buffer pointer means unchanged image content */
 	need_rebind |= context->texture_ibuf != ibuf;
 	need_rebind |= context->display_buffer != display_buffer;

Modified: trunk/blender/source/blender/editors/space_image/image_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_image/image_ops.c	2013-02-19 02:24:52 UTC (rev 54648)
+++ trunk/blender/source/blender/editors/space_image/image_ops.c	2013-02-19 02:30:02 UTC (rev 54649)
@@ -1777,7 +1777,7 @@
 /* XXX Note: the WM_operator_props_dialog_popup() doesn't work for uiIDContextProperty(), image is not being that way */
 static int image_new_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
 {
-	return WM_operator_props_dialog_popup(C, op, 15*UI_UNIT_X, 5*UI_UNIT_Y);
+	return WM_operator_props_dialog_popup(C, op, 15 * UI_UNIT_X, 5 * UI_UNIT_Y);
 
 }
 

Modified: trunk/blender/source/blender/editors/space_text/text_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_text/text_ops.c	2013-02-19 02:24:52 UTC (rev 54648)
+++ trunk/blender/source/blender/editors/space_text/text_ops.c	2013-02-19 02:30:02 UTC (rev 54649)
@@ -1929,7 +1929,7 @@
 
 static int text_jump_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
 {
-	return WM_operator_props_dialog_popup(C, op, 10*UI_UNIT_X, 5*UI_UNIT_Y);
+	return WM_operator_props_dialog_popup(C, op, 10 * UI_UNIT_X, 5 * UI_UNIT_Y);
 
 }
 

Modified: trunk/blender/source/blender/editors/transform/transform_generics.c
===================================================================
--- trunk/blender/source/blender/editors/transform/transform_generics.c	2013-02-19 02:24:52 UTC (rev 54648)
+++ trunk/blender/source/blender/editors/transform/transform_generics.c	2013-02-19 02:30:02 UTC (rev 54649)
@@ -378,6 +378,8 @@
 	
 	bAnimListElem *ale;
 	int dosort = 0;
+
+	const bool use_local_center = checkUseLocalCenter_GraphEdit(t);
 	
 	
 	/* initialize relevant anim-context 'context' data from TransInfo data */
@@ -406,11 +408,10 @@
 		/* ignore unselected fcurves */
 		if (!fcu_test_selected(fcu))
 			continue;
-		
-		// fixme: only do this for selected verts...
+
 		ANIM_unit_mapping_apply_fcurve(ac.scene, ale->id, ale->key_data,
 		                               ANIM_UNITCONV_ONLYSEL | ANIM_UNITCONV_SELVERTS | ANIM_UNITCONV_RESTORE |
-		                               (checkUseLocalCenter_GraphEdit(t) ? ANIM_UNITCONV_SKIPKNOTS : 0));
+		                               (use_local_center ? ANIM_UNITCONV_SKIPKNOTS : 0));
 		
 		
 		/* watch it: if the time is wrong: do not correct handles yet */

Modified: trunk/blender/source/blender/imbuf/intern/dds/dds_api.cpp
===================================================================
--- trunk/blender/source/blender/imbuf/intern/dds/dds_api.cpp	2013-02-19 02:24:52 UTC (rev 54648)
+++ trunk/blender/source/blender/imbuf/intern/dds/dds_api.cpp	2013-02-19 02:30:02 UTC (rev 54649)
@@ -96,7 +96,7 @@
 	Color32 pixel;
 	Color32 *pixels = 0;
 
-	/* OCIO_TODO: never was able to save DDS, so can'ttest loading
+	/* OCIO_TODO: never was able to save DDS, so can't test loading
 	 *            but profile used to be set to sRGB and can't see rect_float here, so
 	 *            default byte space should work fine
 	 */

Modified: trunk/blender/source/blender/imbuf/intern/iris.c
===================================================================
--- trunk/blender/source/blender/imbuf/intern/iris.c	2013-02-19 02:24:52 UTC (rev 54648)
+++ trunk/blender/source/blender/imbuf/intern/iris.c	2013-02-19 02:30:02 UTC (rev 54649)
@@ -672,7 +672,7 @@
  *	represents one pixel.  xsize and ysize specify the dimensions of
  *	the pixel array.  zsize specifies what kind of image file to
  *	write out.  if zsize is 1, the luminance of the pixels are
- *	calculated, and a sinlge channel black and white image is saved.
+ *	calculated, and a single channel black and white image is saved.
  *	If zsize is 3, an RGB image file is saved.  If zsize is 4, an
  *	RGBA image file is saved.
  *

Modified: trunk/blender/source/blender/python/generic/bpy_internal_import.c
===================================================================
--- trunk/blender/source/blender/python/generic/bpy_internal_import.c	2013-02-19 02:24:52 UTC (rev 54648)
+++ trunk/blender/source/blender/python/generic/bpy_internal_import.c	2013-02-19 02:30:02 UTC (rev 54649)
@@ -66,7 +66,7 @@
  *
  * However Python's alternative is to use import hooks,
  * which are implemented in a way that we can't use our own importer as a
- * fall-back (instead we must try and fail - raise an exception evert time).
+ * fall-back (instead we must try and fail - raise an exception every time).
  * Since importing from blenders text-blocks is not the common case
  * I prefer to use Pythons import by default and fall-back to
  * Blenders - which we can only do by intercepting import calls I'm afraid.

Modified: trunk/blender/source/tools/spell_check_source_config.py
===================================================================
--- trunk/blender/source/tools/spell_check_source_config.py	2013-02-19 02:24:52 UTC (rev 54648)
+++ trunk/blender/source/tools/spell_check_source_config.py	2013-02-19 02:30:02 UTC (rev 54649)
@@ -80,7 +80,6 @@
     "euler", "eulers",
     "booleans",
     "intrinsics",
-    "xml",
     "XXX",
     "segfault",
     "wiki",
@@ -93,6 +92,7 @@
     "usr",
     "env",
     "app",
+    "preprocessor",
 
     # specific computer terms/brands
     "posix",
@@ -108,7 +108,9 @@
     # general computer graphics terms
     "colinear",
     "coplanar",
+    "barycentric",
     "bezier",
+    "fresnel",
     "radiosity",
     "reflectance",
     "specular",
@@ -122,6 +124,8 @@
     "centroid",
     "emissive",
     "quaternions",
+    "lacunarity",
+    "musgrave",
     "normals",
 

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list