… | |
… | |
255 | if (faces_sent[facenum]) |
255 | if (faces_sent[facenum]) |
256 | return; |
256 | return; |
257 | |
257 | |
258 | faces_sent[facenum] = true; |
258 | faces_sent[facenum] = true; |
259 | |
259 | |
|
|
260 | // if for some reason we let a client without face caching connect, |
|
|
261 | // we better support that decision here and implement it. |
260 | if (!facecache) |
262 | if (!facecache) |
261 | { |
|
|
262 | send_drawinfo ( |
|
|
263 | "*** Please enable image/face caching in preferences or use a client that supports it.\n", |
|
|
264 | NDI_RED |
|
|
265 | ); |
|
|
266 | return send_image (facenum); |
263 | return send_image (facenum); |
267 | } |
|
|
268 | |
264 | |
269 | packet sl; |
265 | packet sl; |
270 | |
266 | |
271 | if (force_face0) |
267 | if (force_face0) |
272 | sl << "face " << uint16 (facenum); |
268 | sl << "face " << uint16 (facenum); |
… | |
… | |
305 | if (!d) |
301 | if (!d) |
306 | { |
302 | { |
307 | LOG (llevError, "client::send_image (%d) out of bounds??\n", facenum); |
303 | LOG (llevError, "client::send_image (%d) out of bounds??\n", facenum); |
308 | return; |
304 | return; |
309 | } |
305 | } |
|
|
306 | |
|
|
307 | faces_sent[facenum] = true; |
|
|
308 | |
|
|
309 | if (force_image_newmap) |
|
|
310 | force_newmap = true; |
310 | |
311 | |
311 | packet sl; |
312 | packet sl; |
312 | |
313 | |
313 | sl << (image2 ? "image2 " : "image ") |
314 | sl << (image2 ? "image2 " : "image ") |
314 | << uint32 (facenum); |
315 | << uint32 (facenum); |