Skip to content

Commit

Permalink
[#73] MR
Browse files Browse the repository at this point in the history
  • Loading branch information
Orchaldir committed Nov 4, 2023
1 parent ec74067 commit 761b187
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion rpg_tools_rendering/examples/shirts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ use crate::utils::render::{add_names, render_2_sets};
use rpg_tools_core::model::character::appearance::body::{Body, BodyShape};
use rpg_tools_core::model::character::appearance::Appearance;
use rpg_tools_core::model::color::Color;
use rpg_tools_core::model::equipment::appearance::shirt::{Neckline, Shirt, SleeveStyle};
use rpg_tools_core::model::equipment::appearance::option::neckline::Neckline;
use rpg_tools_core::model::equipment::appearance::option::sleeve::SleeveStyle;
use rpg_tools_core::model::equipment::appearance::shirt::Shirt;
use rpg_tools_core::model::equipment::appearance::Clothing;
use rpg_tools_core::model::length::Length;

Expand Down
4 changes: 2 additions & 2 deletions rpg_tools_rendering/src/rendering/equipment/outerwear/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub fn render_outerwear_before_body(
match outerwear {
Outerwear::None => {}
Outerwear::Cloak(cloak) => {
if from_front == false {
if !from_front {
render_cloak_behind_body(renderer, config, aabb, body, cloak, from_front)
}
}
Expand All @@ -39,7 +39,7 @@ pub fn render_outerwear_behind_body(
from_front: bool,
) {
if let Outerwear::Cloak(cloak) = outerwear {
if from_front == true {
if from_front {
render_cloak_behind_body(renderer, config, aabb, body, cloak, from_front);
}
}
Expand Down

0 comments on commit 761b187

Please sign in to comment.