diff options
| author | Marius Kintel <marius@kintel.net> | 2012-07-07 20:30:04 (GMT) | 
|---|---|---|
| committer | Marius Kintel <marius@kintel.net> | 2012-07-07 20:30:04 (GMT) | 
| commit | deaeafea8d950814081bdf77097ac3170ce4660a (patch) | |
| tree | 039848717147d45c080794baa7b8e15d0f5f3757 /src | |
| parent | 0d619e5ac155e37c432d57062d8224a58c9d59ab (diff) | |
coding style
Diffstat (limited to 'src')
| -rw-r--r-- | src/linearextrude.cc | 11 | 
1 files changed, 6 insertions, 5 deletions
| diff --git a/src/linearextrude.cc b/src/linearextrude.cc index ccaa238..dd57f47 100644 --- a/src/linearextrude.cc +++ b/src/linearextrude.cc @@ -77,11 +77,12 @@ AbstractNode *LinearExtrudeModule::evaluate(const Context *ctx, const ModuleInst  	// if height not given, and first argument is a number,  	// then assume it should be the height. -	if ( c.lookup_variable("height").type == Value::UNDEFINED ) -		if ( inst->argnames.size()>0 ) -			if ( inst->argnames[0] == "" ) -				if ( inst->argvalues[0].type == Value::NUMBER ) -					height = Value(inst->argvalues[0]); +	if (c.lookup_variable("height").type == Value::UNDEFINED && +			inst->argnames.size() > 0 &&  +			inst->argnames[0] == "" && +			inst->argvalues[0].type == Value::NUMBER) { +		height = Value(inst->argvalues[0]); +	}  	node->layername = layer.text;  	node->height = height.num; | 
