MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / add_component

Method add_component

src/DrawingProgram/DrawingProgramCache.cpp:51–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49{}
50
51void DrawingProgramCache::add_component(CanvasComponentContainer::ObjInfo* c) {
52 unsortedComponents.emplace_back(c);
53 invalidate_cache_at_optional_aabb(c->obj->get_world_bounds());
54}
55
56void DrawingProgramCache::erase_component(CanvasComponentContainer::ObjInfo* c) {
57 auto cacheParentBvhNodeLock = c->obj->cacheParentBvhNode.lock();

Calls

no outgoing calls

Tested by

no test coverage detected