ObjectDist.cpp (pymol-v1.8.6.0.tar.bz2) | : | ObjectDist.cpp (pymol-v2.1.0.tar.bz2) | ||
---|---|---|---|---|
skipping to change at line 456 | skipping to change at line 456 | |||
if(ds) | if(ds) | |||
ds->render(info); | ds->render(info); | |||
} | } | |||
} | } | |||
} | } | |||
static CSetting **ObjectDistGetSettingHandle(ObjectDist * I, int state) | static CSetting **ObjectDistGetSettingHandle(ObjectDist * I, int state) | |||
{ | { | |||
if(state < 0) { | if(state < 0) { | |||
return (&I->Obj.Setting); | return (&I->Obj.Setting); | |||
} else if(state < I->NDSet) { | ||||
if(I->DSet[state]) { | ||||
return (&I->DSet[state]->Setting); | ||||
} else { | ||||
return (NULL); | ||||
} | ||||
} else { | } else { | |||
return (NULL); | return (NULL); | |||
} | } | |||
} | } | |||
static void ObjectDistInvalidate(CObject * Iarg, int rep, int level, int state){ | static void ObjectDistInvalidate(CObject * Iarg, int rep, int level, int state){ | |||
ObjectDist * I = (ObjectDist*)Iarg; | ObjectDist * I = (ObjectDist*)Iarg; | |||
for(StateIterator iter(I->Obj.G, I->Obj.Setting, state, I->NDSet); | for(StateIterator iter(I->Obj.G, I->Obj.Setting, state, I->NDSet); | |||
iter.next();) { | iter.next();) { | |||
DistSet * ds = I->DSet[iter.state]; | DistSet * ds = I->DSet[iter.state]; | |||
End of changes. 1 change blocks. | ||||
6 lines changed or deleted | 0 lines changed or added |