Fix "Replace Meshes" in radiosity to actually only replace Meshes, and not

also delete lamps, cameras and anything else that was selected in the
"Collect Meshes" phase.
This commit is contained in:
Alexander Ewering
2005-07-12 16:24:27 +00:00
parent f6bd2ad3d0
commit 6f5b3b10c8

View File

@@ -1046,7 +1046,11 @@ void rad_replacemesh(void)
rp= RG.patchbase.first;
while(rp) {
if( exist_object(rp->from)) rp->from->flag |= SELECT;
if( exist_object(rp->from)) {
if (rp->from->type == OB_MESH) {
rp->from->flag |= SELECT;
}
}
rp= rp->next;
}