Commit 73f4dd92 authored by claes's avatar claes

Connections not affected of other nodes

parent 07ecb424
/* /*
* Proview $Id: glow_con.cpp,v 1.9 2007-11-22 09:02:49 claes Exp $ * Proview $Id: glow_con.cpp,v 1.10 2008-04-08 11:20:50 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -1580,16 +1580,20 @@ int GlowCon::con_route_area( double wind_ll_x, double wind_ll_y, ...@@ -1580,16 +1580,20 @@ int GlowCon::con_route_area( double wind_ll_x, double wind_ll_y,
{ {
if ( ctx->a[i]->in_area(wind_ll_x, wind_ll_y, wind_ur_x, wind_ur_y)) if ( ctx->a[i]->in_area(wind_ll_x, wind_ll_y, wind_ur_x, wind_ur_y))
{ {
#if 0
if ( ctx->a[i]->type() == glow_eObjectType_Node || if ( ctx->a[i]->type() == glow_eObjectType_Node ||
ctx->a[i]->type() == glow_eObjectType_GrowNode || ctx->a[i]->type() == glow_eObjectType_GrowNode ||
ctx->a[i]->type() == glow_eObjectType_GrowConGlue || ctx->a[i]->type() == glow_eObjectType_GrowConGlue ||
ctx->a[i]->type() == glow_eObjectType_GrowGroup) ctx->a[i]->type() == glow_eObjectType_GrowGroup)
ctx->a[i]->link_insert( (void **)&nodelist); ctx->a[i]->link_insert( (void **)&nodelist);
#endif
if ( ctx->a[i]->type() == glow_eObjectType_Con && if ( ctx->a[i]->type() == glow_eObjectType_Con &&
ctx->a[i] != (GlowArrayElem *) this) ctx->a[i] != (GlowArrayElem *) this)
ctx->a[i]->link_insert( (void **)&conlist); ctx->a[i]->link_insert( (void **)&conlist);
} }
} }
dest_node->link_insert( (void **)&nodelist);
source_node->link_insert( (void **)&nodelist);
if ( !nodelist) if ( !nodelist)
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment