diff options
| -rw-r--r-- | convmodel.c | 11 | 
1 files changed, 4 insertions, 7 deletions
| diff --git a/convmodel.c b/convmodel.c index 8646ace..31a062d 100644 --- a/convmodel.c +++ b/convmodel.c @@ -422,13 +422,10 @@ void parse_node(  		parse_node_cfg(n, &cfg);  	if (n->mesh) {  		Shader_Attrib* desired; -		if (!cfg.shader) { -			print_err( -				"Node %s has a mesh, but doesn't specify a shader.\n", -				n->name -			); -			pbreak(48); -		} +		if (!cfg.shader) +			cfg.shader = "surface.csh"; +		if (!cfg.depth_shader) +			cfg.depth_shader = "surface_depthonly.csh";  		if (!cfg.material) {  			print_err(  				"Node %s has a mesh, but doesn't specify a material.\n", |