Mentions légales du service

Skip to content
Snippets Groups Projects

Fix issue #18: svg export did not export states

Merged Johnny Jazeix requested to merge svg_fix into master
2 files
+ 9
2
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 8
1
@@ -221,7 +221,14 @@ void Render_svg::start_draw_states(){
}
void Render_svg::draw_state(const Element_pos, const Element_pos, const Element_pos, const Element_pos, const Element_col, EntityValue* ){
void Render_svg::draw_state(const Element_pos x, const Element_pos y, const Element_pos z, const Element_pos w, const Element_pos h, EntityValue* v){
if(v){
Color *c = v->get_file_color();
if(c){
set_color(c->get_red(), c->get_green(), c->get_blue());
}
}
draw_quad(x, y, z, w, h);
}
void Render_svg::end_draw_states(){
Loading