With no objects in scene, press F (ALT+F) for faceselect crashed.

Bugfix #2755
This commit is contained in:
2005-06-16 21:19:13 +00:00
parent 401dfba305
commit 49d38efe7e

View File

@@ -1202,7 +1202,7 @@ void set_faceselect() /* toggle */
Mesh *me = 0;
scrarea_queue_headredraw(curarea);
if(ob->id.lib) return;
if(ob==NULL || ob->id.lib) return;
if(G.f & G_FACESELECT) G.f &= ~G_FACESELECT;
else {