[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12910] trunk/blender/source/blender/ python/api2_5x/sceneSequence.c: Python API

Ken Hughes khughes at pacific.edu
Sun Dec 16 18:54:34 CET 2007


Revision: 12910
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12910
Author:   khughes
Date:     2007-12-16 18:54:34 +0100 (Sun, 16 Dec 2007)

Log Message:
-----------
Python API
----------
Compiler complaints about "ISO C90 forbids mixed declarations and code"

Modified Paths:
--------------
    trunk/blender/source/blender/python/api2_5x/sceneSequence.c

Modified: trunk/blender/source/blender/python/api2_5x/sceneSequence.c
===================================================================
--- trunk/blender/source/blender/python/api2_5x/sceneSequence.c	2007-12-16 11:08:20 UTC (rev 12909)
+++ trunk/blender/source/blender/python/api2_5x/sceneSequence.c	2007-12-16 17:54:34 UTC (rev 12910)
@@ -163,8 +163,10 @@
 		/* sound */
 		int totframe;
 		bSound *sound = (( BPySoundObject * )py_data)->sound;
+
+		/* scene */
+		Scene *sce = ((BPySceneObject *)py_data)->scene;
 		
-		
 		seq->type= SEQ_RAM_SOUND;
 		seq->sound = sound;
 		
@@ -182,9 +184,6 @@
 
 		/* name sound in first strip */
 		strncpy(se->name, sound->name, FILE_MAXFILE-1);
-
-		/* scene */
-		Scene *sce = ((BPySceneObject *)py_data)->scene;
 		
 		seq->type= SEQ_SCENE;
 		seq->scene= sce;





More information about the Bf-blender-cvs mailing list