@@ -145,7 +145,7 @@ void SceneLoader::applyScene(const Node& _node, Color& backgroundColor,
145
145
Stops& backgroundStops, Scene::animate& animated) {
146
146
if (!_node) { return ; }
147
147
if (!_node.IsMap ()) {
148
- LOGNode (" Invalid 'scene' section" , _node);
148
+ LOGNode (" Invalid 'scene' section" , _node, " " );
149
149
return ;
150
150
}
151
151
@@ -302,7 +302,7 @@ Scene::Lights SceneLoader::applyLights(const Node& _node) {
302
302
}
303
303
}
304
304
} else if (_node) {
305
- LOGNode (" Invalid 'lights'" , _node);
305
+ LOGNode (" Invalid 'lights'" , _node, " " );
306
306
}
307
307
308
308
if (lights.empty ()) {
@@ -436,14 +436,14 @@ void SceneLoader::parseLightPosition(const Node& _positionNode, PointLight& _lig
436
436
}
437
437
_light.setPosition (positionResult);
438
438
} else {
439
- LOGNode (" Invalid light position parameter:" , _positionNode);
439
+ LOGNode (" Invalid light position parameter:" , _positionNode, " " );
440
440
}
441
441
}
442
442
443
443
void SceneLoader::applyTextures (const Node& _node, SceneTextures& _textures) {
444
444
if (!_node) { return ; }
445
445
if (!_node.IsMap ()) {
446
- LOGNode (" Invalid 'textures' section" , _node);
446
+ LOGNode (" Invalid 'textures' section" , _node, " " );
447
447
return ;
448
448
}
449
449
@@ -543,7 +543,7 @@ bool SceneLoader::parseTexFiltering(const Node& _filteringNode, TextureOptions&
543
543
void SceneLoader::applyFonts (const Node& _node, SceneFonts& _fonts) {
544
544
if (!_node) { return ; }
545
545
if (!_node.IsMap ()) {
546
- LOGNode (" Invalid 'fonts' section" , _node);
546
+ LOGNode (" Invalid 'fonts' section" , _node, " " );
547
547
return ;
548
548
}
549
549
@@ -570,7 +570,7 @@ void SceneLoader::applyFonts(const Node& _node, SceneFonts& _fonts) {
570
570
void SceneLoader::loadFontDescription (const Node& _node, const std::string& _family, SceneFonts& _fonts) {
571
571
if (!_node) { return ; }
572
572
if (!_node.IsMap ()) {
573
- LOGNode (" Invalid 'font' section" , _node);
573
+ LOGNode (" Invalid 'font' section" , _node, " " );
574
574
return ;
575
575
}
576
576
@@ -634,18 +634,18 @@ Scene::TileSources SceneLoader::applySources(const Node& _config, const SceneOpt
634
634
635
635
if (const Node& rasters = source.second [" rasters" ]) {
636
636
if (!rasters.IsSequence ()) {
637
- LOGNode (" Invalid 'rasters'" , rasters);
637
+ LOGNode (" Invalid 'rasters'" , rasters, " " );
638
638
continue ;
639
639
}
640
640
for (const auto & raster : rasters) {
641
641
if (!raster.IsScalar ()) {
642
- LOGNode (" Invalid 'raster'" , raster);
642
+ LOGNode (" Invalid 'raster'" , raster, " " );
643
643
continue ;
644
644
}
645
645
if (auto rasterSource = getTileSource (raster.Scalar ())) {
646
646
tileSource->addRasterSource (rasterSource);
647
647
} else {
648
- LOGNode (" Missing raster source" , raster);
648
+ LOGNode (" Missing raster source" , raster, " " );
649
649
}
650
650
}
651
651
}
@@ -676,7 +676,7 @@ Scene::TileSources SceneLoader::applySources(const Node& _config, const SceneOpt
676
676
if (!data_source) { continue ;}
677
677
678
678
if (!data_source.IsScalar ()) {
679
- LOGNode (" Invalid 'source" , data);
679
+ LOGNode (" Invalid 'source" , data, " " );
680
680
continue ;
681
681
}
682
682
auto source = data_source.Scalar ();
@@ -875,7 +875,7 @@ Scene::Styles SceneLoader::applyStyles(const Node& _node, SceneTextures& _textur
875
875
876
876
if (!_node) { return styles; }
877
877
if (!_node.IsMap ()) {
878
- LOGNode (" Invalid 'styles' section" , _node);
878
+ LOGNode (" Invalid 'styles' section" , _node, " " );
879
879
return styles;
880
880
}
881
881
@@ -1256,7 +1256,7 @@ void SceneLoader::loadShaderConfig(const Node& _shaders, Style& _style, SceneTex
1256
1256
1257
1257
_style.styleUniforms ().emplace_back (name, styleUniform.value );
1258
1258
} else {
1259
- LOGNode (" Style uniform parsing failure" , uniform.second );
1259
+ LOGNode (" Style uniform parsing failure" , uniform.second , " " );
1260
1260
}
1261
1261
}
1262
1262
}
@@ -1387,7 +1387,7 @@ void SceneLoader::loadMaterial(const Node& _matNode, Material& _material, Style&
1387
1387
// Handled as texture
1388
1388
break ;
1389
1389
default :
1390
- LOGNode (" Invalid 'material'" , prop);
1390
+ LOGNode (" Invalid 'material'" , prop, " " );
1391
1391
break ;
1392
1392
}
1393
1393
return glm::vec4 (0.0 );
@@ -1441,7 +1441,7 @@ MaterialTexture SceneLoader::loadMaterialTexture(const Node& _matCompNode, Style
1441
1441
1442
1442
Node textureNode = _matCompNode[" texture" ];
1443
1443
if (!textureNode) {
1444
- LOGNode (" Expected a 'texture' parameter" , _matCompNode);
1444
+ LOGNode (" Expected a 'texture' parameter" , _matCompNode, " " );
1445
1445
1446
1446
return MaterialTexture{};
1447
1447
}
@@ -1501,7 +1501,7 @@ std::vector<DataLayer> SceneLoader::applyLayers(const Node& _node, SceneFunctio
1501
1501
SceneStops& _stops, DrawRuleNames& _ruleNames) {
1502
1502
if (!_node) { return {}; }
1503
1503
if (!_node.IsMap ()) {
1504
- LOGNode (" Invalid 'layers' section" , _node);
1504
+ LOGNode (" Invalid 'layers' section" , _node, " " );
1505
1505
return {};
1506
1506
}
1507
1507
0 commit comments