[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57961] branches/soc-2013-depsgraph_mt/ source/blender/blenkernel/intern: Code cleanup: more explicit list base initialization

Sergey Sharybin sergey.vfx at gmail.com
Wed Jul 3 14:33:29 CEST 2013


Revision: 57961
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57961
Author:   nazgul
Date:     2013-07-03 12:33:28 +0000 (Wed, 03 Jul 2013)
Log Message:
-----------
Code cleanup: more explicit list base initialization

Modified Paths:
--------------
    branches/soc-2013-depsgraph_mt/source/blender/blenkernel/intern/cdderivedmesh.c
    branches/soc-2013-depsgraph_mt/source/blender/blenkernel/intern/mesh.c

Modified: branches/soc-2013-depsgraph_mt/source/blender/blenkernel/intern/cdderivedmesh.c
===================================================================
--- branches/soc-2013-depsgraph_mt/source/blender/blenkernel/intern/cdderivedmesh.c	2013-07-03 12:32:42 UTC (rev 57960)
+++ branches/soc-2013-depsgraph_mt/source/blender/blenkernel/intern/cdderivedmesh.c	2013-07-03 12:33:28 UTC (rev 57961)
@@ -1818,7 +1818,7 @@
 
 DerivedMesh *CDDM_from_curve(Object *ob)
 {
-	ListBase disp = {NULL};
+	ListBase disp = {NULL, NULL};
 
 	if (ob->curve_cache) {
 		disp = ob->curve_cache->disp;

Modified: branches/soc-2013-depsgraph_mt/source/blender/blenkernel/intern/mesh.c
===================================================================
--- branches/soc-2013-depsgraph_mt/source/blender/blenkernel/intern/mesh.c	2013-07-03 12:32:42 UTC (rev 57960)
+++ branches/soc-2013-depsgraph_mt/source/blender/blenkernel/intern/mesh.c	2013-07-03 12:33:28 UTC (rev 57961)
@@ -1292,7 +1292,7 @@
                             MEdge **alledge, int *totedge, MLoop **allloop, MPoly **allpoly,
                             int *totloop, int *totpoly)
 {
-	ListBase disp = {NULL};
+	ListBase disp = {NULL, NULL};
 
 	if (ob->curve_cache) {
 		disp = ob->curve_cache->disp;
@@ -1644,7 +1644,7 @@
 {
 	Curve *cu = (Curve *) ob->data;
 	bool use_orco_uv = (cu->flag & CU_UV_ORCO) != 0;
-	ListBase disp = {NULL};
+	ListBase disp = {NULL, NULL};
 
 	if (ob->curve_cache) {
 		disp = ob->curve_cache->disp;




More information about the Bf-blender-cvs mailing list