Remove element script and allow images to be pixel updated for similar behaviour
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user