1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Finally figured out how to implement AnimatedTexture properly.

This commit is contained in:
Juan Linietsky
2018-07-16 11:43:26 -03:00
parent 9eb082004d
commit de910f8c26
18 changed files with 483 additions and 3 deletions

View File

@@ -95,10 +95,11 @@ void VisualServerRaster::request_frame_drawn_callback(Object *p_where, const Str
void VisualServerRaster::draw(bool p_swap_buffers) {
changes = 0;
//needs to be done before changes is reset to 0, to not force the editor to redraw
VS::get_singleton()->emit_signal("frame_pre_draw");
changes = 0;
VSG::rasterizer->begin_frame();
VSG::scene->update_dirty_instances(); //update scene stuff