[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16520] trunk/blender/source/blender/ python/api2_2x/bpy_data.c: Python API

Ken Hughes khughes at pacific.edu
Sun Sep 14 16:18:26 CEST 2008


Revision: 16520
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16520
Author:   khughes
Date:     2008-09-14 16:17:44 +0200 (Sun, 14 Sep 2008)

Log Message:
-----------
Python API
----------
Fix C90 mixed declarations and code.

Modified Paths:
--------------
    trunk/blender/source/blender/python/api2_2x/bpy_data.c

Modified: trunk/blender/source/blender/python/api2_2x/bpy_data.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/bpy_data.c	2008-09-14 12:41:42 UTC (rev 16519)
+++ trunk/blender/source/blender/python/api2_2x/bpy_data.c	2008-09-14 14:17:44 UTC (rev 16520)
@@ -334,6 +334,7 @@
 					"Must be a text" );
 		} else {
 			SpaceText *st= NULL;
+			Text *data = ((BPy_Text *)value)->text;
 			
 			if (curarea==NULL) {
 				return 0;
@@ -341,8 +342,6 @@
 				st= curarea->spacedata.first;
 			}
 			
-			Text *data = ((BPy_Text *)value)->text;
-			
 			if( !data )
 				return EXPP_ReturnIntError( PyExc_RuntimeError,
 						      "This object isn't linked to a Blender Text Object" );





More information about the Bf-blender-cvs mailing list