remove two mysterious crashes (although I don't know why it was broken to begin with)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@223 61c419a2-8eb2-4b30-bcec-8cead039b335
This commit is contained in:
parent
d176f51831
commit
ecfd6813e3
|
|
@ -195,7 +195,8 @@ public:
|
||||||
}
|
}
|
||||||
void post(const scene::Path& path, scene::Instance& instance) const
|
void post(const scene::Path& path, scene::Instance& instance) const
|
||||||
{
|
{
|
||||||
if(Instance_getSelectable(instance)->isSelected())
|
Selectable *selectable = Instance_getSelectable(instance);
|
||||||
|
if(selectable && selectable->isSelected())
|
||||||
{
|
{
|
||||||
Entity* entity = Node_getEntity(path.top());
|
Entity* entity = Node_getEntity(path.top());
|
||||||
if(entity == 0 && Node_isPrimitive(path.top()))
|
if(entity == 0 && Node_isPrimitive(path.top()))
|
||||||
|
|
|
||||||
|
|
@ -181,6 +181,7 @@ mapDrawSurface_t *MakeCelSurface( mapDrawSurface_t *src, shaderInfo_t *si )
|
||||||
/* do some fixups for celshading */
|
/* do some fixups for celshading */
|
||||||
ds->planar = qfalse;
|
ds->planar = qfalse;
|
||||||
ds->planeNum = -1;
|
ds->planeNum = -1;
|
||||||
|
ds->celShader = NULL; /* don't cel shade cels :P */
|
||||||
|
|
||||||
/* return the surface */
|
/* return the surface */
|
||||||
return ds;
|
return ds;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user