[Bf-blender-cvs] [725e8ba] blender-v2.72-release: Fix compilation on GCC (good old mixed declaration and code).

Bastien Montagne noreply at git.blender.org
Fri Oct 3 15:24:42 CEST 2014


Commit: 725e8ba47ebb9240be3b7dcc5cfcdfff14f1d929
Author: Bastien Montagne
Date:   Tue Sep 30 14:22:20 2014 +0200
Branches: blender-v2.72-release
https://developer.blender.org/rB725e8ba47ebb9240be3b7dcc5cfcdfff14f1d929

Fix compilation on GCC (good old mixed declaration and code).

===================================================================

M	source/blender/editors/io/io_collada.c

===================================================================

diff --git a/source/blender/editors/io/io_collada.c b/source/blender/editors/io/io_collada.c
index bc23c2d..4045a9b 100644
--- a/source/blender/editors/io/io_collada.c
+++ b/source/blender/editors/io/io_collada.c
@@ -96,7 +96,9 @@ static int wm_collada_export_exec(bContext *C, wmOperator *op)
 	int use_object_instantiation;
 	int sort_by_name;
 	int export_transformation_type;
-	int open_sim; 
+	int open_sim;
+
+	int export_count;
 
 	if (!RNA_struct_property_is_set(op->ptr, "filepath")) {
 		BKE_report(op->reports, RPT_ERROR, "No filename given");
@@ -148,7 +150,7 @@ static int wm_collada_export_exec(bContext *C, wmOperator *op)
 	ED_object_editmode_load(CTX_data_edit_object(C));
 
 
-	int export_count = collada_export(CTX_data_scene(C),
+	export_count = collada_export(CTX_data_scene(C),
 		filepath,
 		apply_modifiers,
 		export_mesh_type,




More information about the Bf-blender-cvs mailing list