Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 0eb6bd2f authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

Merge branch 'svg_fix' into 'master'

Fix issue #18: svg export did not export states

Closes #18

See merge request !22
parents 1a267172 c1ad88cc
No related branches found
No related tags found
1 merge request!22Fix issue #18: svg export did not export states
Pipeline #179151 passed
......@@ -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(){
......
......@@ -136,7 +136,7 @@ public:
* \param g the green color rate of the state.
* \param b the blue color rate of the state.
*/
void draw_state(const Element_pos, const Element_pos, const Element_pos, const Element_pos, const Element_col, EntityValue* ) override;
void draw_state(const Element_pos, const Element_pos, const Element_pos, const Element_pos, const Element_pos, EntityValue* ) override;
/*!
* \brief Closes the state display list.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment