make_mapdef.sh: read mins/maxs/model only when editor_mins/maxs/model weren't explicitly set
This commit is contained in:
parent
c314e880fd
commit
e93dc09805
1 changed files with 25 additions and 1 deletions
|
@ -43,16 +43,40 @@ do
|
|||
printf -- "$VAL" > "/tmp/def_maxs"
|
||||
fi
|
||||
|
||||
if [ "$KEY" == "mins" ]
|
||||
then
|
||||
if [ -z $(cat "/tmp/def_mins") ]
|
||||
then
|
||||
printf -- "$VAL" > "/tmp/def_mins"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$KEY" == "maxs" ]
|
||||
then
|
||||
if [ -z $(cat "/tmp/def_maxs") ]
|
||||
then
|
||||
printf -- "$VAL" > "/tmp/def_maxs"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$KEY" == "editor_usage" ]
|
||||
then
|
||||
printf -- "$VAL" > "/tmp/def_usage"
|
||||
fi
|
||||
|
||||
if [ "$KEY" == "model" ]
|
||||
if [ "$KEY" == "editor_model" ]
|
||||
then
|
||||
printf -- "$VAL" > "/tmp/def_model"
|
||||
fi
|
||||
|
||||
if [ "$KEY" == "model" ]
|
||||
then
|
||||
if [ -z $(cat "/tmp/def_model") ]
|
||||
then
|
||||
printf -- "$VAL" > "/tmp/def_model"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$SEG1" == "}" ]
|
||||
then
|
||||
KEY_NAME=$(cat "/tmp/def_name")
|
||||
|
|
Loading…
Reference in a new issue