mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
always apply in diffuse color, if doens't have surface color
Signed-off-by: Cristian Ritter <cristian_ritter@hotmail.com>
This commit is contained in:
@@ -327,10 +327,10 @@ typedef item const* ptr;
|
||||
style(const std::string& name) : name(name), specularity(std::numeric_limits<double>::quiet_NaN()), transparency(std::numeric_limits<double>::quiet_NaN()), use_surface_color(false) {}
|
||||
|
||||
const colour& get_color() const {
|
||||
if ((use_surface_color && surface) || !diffuse) {
|
||||
if (use_surface_color && surface) {
|
||||
return surface;
|
||||
}
|
||||
return diffuse;
|
||||
}
|
||||
return diffuse;
|
||||
}
|
||||
|
||||
bool has_specularity() const {
|
||||
|
||||
Reference in New Issue
Block a user