[Bf-blender-cvs] [28f88d2] openvdb: Cycles: style cleanup.

Kévin Dietrich noreply at git.blender.org
Sat Jun 13 03:45:53 CEST 2015


Commit: 28f88d2076398d4e0ec68f4ca3a3fb80964edb99
Author: Kévin Dietrich
Date:   Sat Jun 13 02:15:53 2015 +0200
Branches: openvdb
https://developer.blender.org/rB28f88d2076398d4e0ec68f4ca3a3fb80964edb99

Cycles: style cleanup.

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

M	intern/cycles/render/openvdb.cpp

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

diff --git a/intern/cycles/render/openvdb.cpp b/intern/cycles/render/openvdb.cpp
index 00520b8..8ca613c 100644
--- a/intern/cycles/render/openvdb.cpp
+++ b/intern/cycles/render/openvdb.cpp
@@ -55,7 +55,7 @@ static inline void catch_exceptions()
 	try {
 		throw;
 	}
-	catch (const openvdb::IoError& e) {
+	catch(const openvdb::IoError& e) {
 		std::cerr << e.what() << "\n";
 	}
 #endif
@@ -78,7 +78,7 @@ int VolumeManager::add_volume(const string& filename, const string& name, int sa
 
 		need_update = true;
 	}
-	catch (...) {
+	catch(...) {
 		catch_exceptions();
 		need_update = false;
 		slot = -1;
@@ -121,15 +121,15 @@ int VolumeManager::find_existing_slot(const string& filename, const string& name
 int VolumeManager::find_density_slot()
 {
 	/* first try finding a matching grid name */
-	for (size_t i = 0; i < current_grids.size(); ++i) {
+	for(size_t i = 0; i < current_grids.size(); ++i) {
 		GridDescription grid = current_grids[i];
 		
-		if (string_iequals(grid.name, "density") || string_iequals(grid.name, "density high"))
+		if(string_iequals(grid.name, "density") || string_iequals(grid.name, "density high"))
 			return grid.slot;
 	}
 	
 	/* try using the first scalar float grid instead */
-	if (!float_volumes.empty()) {
+	if(!float_volumes.empty()) {
 		return 0;
 	}




More information about the Bf-blender-cvs mailing list