MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / getImageRef

Method getImageRef

src/doc/sprite.cpp:405–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403// Shared Images and CelData (for linked Cels)
404
405ImageRef Sprite::getImageRef(ObjectId imageId)
406{
407 for (auto cel : cels()) {
408 if (cel->image()->id() == imageId)
409 return cel->imageRef();
410 }
411 return ImageRef(nullptr);
412}
413
414CelDataRef Sprite::getCelDataRef(ObjectId celDataId)
415{

Callers 1

read_celdataFunction · 0.45

Calls 3

idMethod · 0.45
imageMethod · 0.45
imageRefMethod · 0.45

Tested by

no test coverage detected