diff engine/core/model/structures/layer.cpp @ 595:ea80b41c9bd7

- tested & applied patch by Helios - fixes API inconsistence and removed NotFound Exceptions for: - layer.getInstance() - model.getObjects() NOTE: - model.getObject() returned 0 if no objects were found, whereas model.getObjects() throws an exception (-> inconsistent)
author chewie@33b003aa-7bff-0310-803a-e67f0ece8222
date Sat, 21 Aug 2010 15:44:03 +0000
parents 16c2b3ee59ce
children 4f36c890b1dd
line wrap: on
line diff
--- a/engine/core/model/structures/layer.cpp	Thu Aug 19 14:15:02 2010 +0000
+++ b/engine/core/model/structures/layer.cpp	Sat Aug 21 15:44:03 2010 +0000
@@ -148,7 +148,7 @@
 				return *it;
 		}
 
-		throw NotFound(id);
+		return 0;
 	}
 
 	std::vector<Instance*> Layer::getInstances(const std::string& id) {