fix: silence warnings about unused local variable (thanks to dfelinto for the hint)

This commit is contained in:
Gaia Clary
2018-02-02 11:56:50 +01:00
parent fe82a09f89
commit c4a19e988b

View File

@@ -304,9 +304,9 @@ int DocumentExporter::exportCurrentScene(Scene *sce)
// <library_animations> // <library_animations>
AnimationExporter ae(writer, this->export_settings); AnimationExporter ae(writer, this->export_settings);
bool has_animations = ae.exportAnimations(sce);
#if 0 #if 0
bool has_animations = ae.exportAnimations(sce);
/* The following code seems to be an obsolete workaround /* The following code seems to be an obsolete workaround
Comment out until it proofs correct that we no longer need it. Comment out until it proofs correct that we no longer need it.
*/ */
@@ -322,6 +322,7 @@ int DocumentExporter::exportCurrentScene(Scene *sce)
se.setExportTransformationType(this->export_settings->export_transformation_type); se.setExportTransformationType(this->export_settings->export_transformation_type);
} }
#else #else
ae.exportAnimations(sce);
se.setExportTransformationType(this->export_settings->export_transformation_type); se.setExportTransformationType(this->export_settings->export_transformation_type);
#endif #endif
se.exportScene(sce); se.exportScene(sce);