Remove element script and allow images to be pixel updated for similar behaviour

This commit is contained in:
2026-06-05 11:00:15 +01:00
parent e7418fde08
commit 419e95ac89
9 changed files with 177 additions and 518 deletions
+3 -4
View File
@@ -74,11 +74,10 @@ mrb_value static_image_animation(mrb_state *mrb, mrb_value) {
std::vector<uint64_t> frames = {frame_id};
Animation *animation = new Animation{frames, 1.0f};
Wrapper *s = new Wrapper();
s->id = animation_pool.acquire(animation);
animation_pool.use(s->id);
uint64_t id = animation_pool.acquire(animation);
animation_pool.use(id);
return definitions::wrap(definitions::bindings.Animation, s->id);
return definitions::wrap(definitions::bindings.Animation, id);
}
mrb_value animation_equal(mrb_state *mrb, mrb_value self) {