@@ -230,78 +230,114 @@ ObjectRef Factory::createVertexSet() const
230230
231231ObjectRef Factory::createObject (const std::string& type) const
232232{
233- if (type == " AttributeSet" )
233+ if (type == " AttributeSet" ) {
234234 return createAttributeSet ();
235- if (type == " Billboard" )
235+ }
236+ if (type == " Billboard" ) {
236237 return createBillboard ();
237- if (type == " BlendAttribute" )
238+ }
239+ if (type == " BlendAttribute" ) {
238240 return createBlendAttribute ();
239- if (type == " Box" )
241+ }
242+ if (type == " Box" ) {
240243 return createBox ();
241- if (type == " Cone" )
244+ }
245+ if (type == " Cone" ) {
242246 return createCone ();
243- if (type == " Cylinder" )
247+ }
248+ if (type == " Cylinder" ) {
244249 return createCylinder ();
245- if (type == " DepthAttribute" )
250+ }
251+ if (type == " DepthAttribute" ) {
246252 return createDepthAttribute ();
247- if (type == " DirectionalLight" )
253+ }
254+ if (type == " DirectionalLight" ) {
248255 return createDirectionalLight ();
249- if (type == " Geometry" )
256+ }
257+ if (type == " Geometry" ) {
250258 return createGeometry ();
251- if (type == " Group" )
259+ }
260+ if (type == " Group" ) {
252261 return createGroup ();
253- if (type == " Lines" )
262+ }
263+ if (type == " Lines" ) {
254264 return createLines ();
255- if (type == " LineStrips" )
265+ }
266+ if (type == " LineStrips" ) {
256267 return createLineStrips ();
257- if (type == " LOD" )
268+ }
269+ if (type == " LOD" ) {
258270 return createLOD ();
259- if (type == " Material" )
271+ }
272+ if (type == " Material" ) {
260273 return createMaterial ();
261- if (type == " ParallelView" )
274+ }
275+ if (type == " ParallelView" ) {
262276 return createParallelView ();
263- if (type == " PerspectiveView" )
277+ }
278+ if (type == " PerspectiveView" ) {
264279 return createPerspectiveView ();
265- if (type == " PhantomAttribute" )
280+ }
281+ if (type == " PhantomAttribute" ) {
266282 return createPhantomAttribute ();
267- if (type == " PointLight" )
283+ }
284+ if (type == " PointLight" ) {
268285 return createPointLight ();
269- if (type == " PrimitiveAttribute" )
286+ }
287+ if (type == " PrimitiveAttribute" ) {
270288 return createPrimitiveAttribute ();
271- if (type == " Quads" )
289+ }
290+ if (type == " Quads" ) {
272291 return createQuads ();
273- if (type == " QuadStrips" )
292+ }
293+ if (type == " QuadStrips" ) {
274294 return createQuadStrips ();
275- if (type == " Scene" )
295+ }
296+ if (type == " Scene" ) {
276297 return createScene ();
277- if (type == " ShaderProgram" )
298+ }
299+ if (type == " ShaderProgram" ) {
278300 return createShaderProgram ();
279- if (type == " SkyBackground" )
301+ }
302+ if (type == " SkyBackground" ) {
280303 return createSkyBackground ();
281- if (type == " Sphere" )
304+ }
305+ if (type == " Sphere" ) {
282306 return createSphere ();
283- if (type == " SpotLight" )
307+ }
308+ if (type == " SpotLight" ) {
284309 return createSpotLight ();
285- if (type == " StereoView" )
310+ }
311+ if (type == " StereoView" ) {
286312 return createStereoView ();
287- if (type == " Switch" )
313+ }
314+ if (type == " Switch" ) {
288315 return createSwitch ();
289- if (type == " MediaTexture2D" )
316+ }
317+ if (type == " MediaTexture2D" ) {
290318 return createMediaTexture2D ();
291- if (type == " Textures" )
319+ }
320+ if (type == " Textures" ) {
292321 return createTextures ();
293- if (type == " Transform" )
322+ }
323+ if (type == " Transform" ) {
294324 return createTransform ();
295- if (type == " Triangles" )
325+ }
326+ if (type == " Triangles" ) {
296327 return createTriangles ();
297- if (type == " TriangleFans" )
328+ }
329+ if (type == " TriangleFans" ) {
298330 return createTriangleFans ();
299- if (type == " TriangleStrips" )
331+ }
332+ if (type == " TriangleStrips" ) {
300333 return createTriangleStrips ();
301- if (type == " UndistortedBackground" )
334+ }
335+ if (type == " UndistortedBackground" ) {
302336 return createUndistortedBackground ();
303- if (type == " VertexSet" )
337+ }
338+ if (type == " VertexSet" ) {
304339 return createVertexSet ();
340+ }
305341
306342 return ObjectRef ();
307343}
0 commit comments