set border height to 0 when type is PLAN
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8414 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 817f5dccb51bfca7a6c6160a9487a0ed1a5309ea Former-commit-id: 7ad593b1e245e2ba84c8007f7616c4a9efc2c660
This commit is contained in:
parent
8866203f61
commit
e860c7108d
3 changed files with 6 additions and 0 deletions
|
@ -150,6 +150,7 @@ InitSides(void *TrackHandle, tTrack *theTrack)
|
||||||
style = GfParmGetStr(TrackHandle, TRK_SECT_MAIN, KeyBorderStyle[side], TRK_VAL_PLAN);
|
style = GfParmGetStr(TrackHandle, TRK_SECT_MAIN, KeyBorderStyle[side], TRK_VAL_PLAN);
|
||||||
if (strcmp(style, TRK_VAL_PLAN) == 0) {
|
if (strcmp(style, TRK_VAL_PLAN) == 0) {
|
||||||
borderStyle[side] = TR_PLAN;
|
borderStyle[side] = TR_PLAN;
|
||||||
|
borderHeight[side] = 0;
|
||||||
} else if (strcmp(style, TRK_VAL_CURB) == 0) {
|
} else if (strcmp(style, TRK_VAL_CURB) == 0) {
|
||||||
borderStyle[side] = TR_CURB;
|
borderStyle[side] = TR_CURB;
|
||||||
} else {
|
} else {
|
||||||
|
@ -214,6 +215,7 @@ AddSides(tTrackSeg *curSeg, void *TrackHandle, tTrack *theTrack, int curStep, in
|
||||||
style = GfParmGetCurStr(TrackHandle, path, KeyBorderStyle[side], ValStyle[borderStyle[side]]);
|
style = GfParmGetCurStr(TrackHandle, path, KeyBorderStyle[side], ValStyle[borderStyle[side]]);
|
||||||
if (strcmp(style, TRK_VAL_PLAN) == 0) {
|
if (strcmp(style, TRK_VAL_PLAN) == 0) {
|
||||||
borderStyle[side] = TR_PLAN;
|
borderStyle[side] = TR_PLAN;
|
||||||
|
borderHeight[side] = 0;
|
||||||
} else if (strcmp(style, TRK_VAL_CURB) == 0) {
|
} else if (strcmp(style, TRK_VAL_CURB) == 0) {
|
||||||
borderStyle[side] = TR_CURB;
|
borderStyle[side] = TR_CURB;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -164,6 +164,7 @@ static void InitSides(void *TrackHandle, tTrack *theTrack)
|
||||||
if (strcmp(style, TRK_VAL_PLAN) == 0)
|
if (strcmp(style, TRK_VAL_PLAN) == 0)
|
||||||
{
|
{
|
||||||
borderStyle[side] = TR_PLAN;
|
borderStyle[side] = TR_PLAN;
|
||||||
|
borderHeight[side] = 0;
|
||||||
}
|
}
|
||||||
else if (strcmp(style, TRK_VAL_CURB) == 0)
|
else if (strcmp(style, TRK_VAL_CURB) == 0)
|
||||||
{
|
{
|
||||||
|
@ -251,6 +252,7 @@ static void AddSides(tTrackSeg *curSeg, void *TrackHandle, tTrack *theTrack, int
|
||||||
if (strcmp(style, TRK_VAL_PLAN) == 0)
|
if (strcmp(style, TRK_VAL_PLAN) == 0)
|
||||||
{
|
{
|
||||||
borderStyle[side] = TR_PLAN;
|
borderStyle[side] = TR_PLAN;
|
||||||
|
borderHeight[side] = 0;
|
||||||
}
|
}
|
||||||
else if (strcmp(style, TRK_VAL_CURB) == 0)
|
else if (strcmp(style, TRK_VAL_CURB) == 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -178,6 +178,7 @@ InitSides(void *TrackHandle, tTrack *theTrack)
|
||||||
style = GfParmGetStr(TrackHandle, path, TRK_ATT_STYLE, TRK_VAL_PLAN);
|
style = GfParmGetStr(TrackHandle, path, TRK_ATT_STYLE, TRK_VAL_PLAN);
|
||||||
if (strcmp(style, TRK_VAL_PLAN) == 0) {
|
if (strcmp(style, TRK_VAL_PLAN) == 0) {
|
||||||
borderStyle[side] = TR_PLAN;
|
borderStyle[side] = TR_PLAN;
|
||||||
|
borderHeight[side] = 0;
|
||||||
} else if (strcmp(style, TRK_VAL_CURB) == 0) {
|
} else if (strcmp(style, TRK_VAL_CURB) == 0) {
|
||||||
borderStyle[side] = TR_CURB;
|
borderStyle[side] = TR_CURB;
|
||||||
} else {
|
} else {
|
||||||
|
@ -254,6 +255,7 @@ AddSides(tTrackSeg *curSeg, void *TrackHandle, tTrack *theTrack, int curStep, in
|
||||||
style = GfParmGetStr(TrackHandle, path2, TRK_ATT_STYLE, ValStyle[borderStyle[side]]);
|
style = GfParmGetStr(TrackHandle, path2, TRK_ATT_STYLE, ValStyle[borderStyle[side]]);
|
||||||
if (strcmp(style, TRK_VAL_PLAN) == 0) {
|
if (strcmp(style, TRK_VAL_PLAN) == 0) {
|
||||||
borderStyle[side] = TR_PLAN;
|
borderStyle[side] = TR_PLAN;
|
||||||
|
borderHeight[side] = 0;
|
||||||
} else if (strcmp(style, TRK_VAL_CURB) == 0) {
|
} else if (strcmp(style, TRK_VAL_CURB) == 0) {
|
||||||
borderStyle[side] = TR_CURB;
|
borderStyle[side] = TR_CURB;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue