mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 10:23:41 +00:00
better comments
This commit is contained in:
committed by
Dion Moult
parent
a21939dc0d
commit
d50e8060ac
@@ -677,13 +677,13 @@ class BIM_OT_add_section_plane(bpy.types.Operator):
|
|||||||
if material.node_tree.nodes.get("Section Override"):
|
if material.node_tree.nodes.get("Section Override"):
|
||||||
continue
|
continue
|
||||||
# In EEVEE rendering engine, `blend_mode` is deprecated and replaced by `surface_render_method`
|
# In EEVEE rendering engine, `blend_mode` is deprecated and replaced by `surface_render_method`
|
||||||
|
# https://developer.blender.org/docs/release_notes/4.2/eevee_migration/#materials
|
||||||
if (hasattr(material, "surface_render_method")):
|
if (hasattr(material, "surface_render_method")):
|
||||||
material.surface_render_method = "DITHERED"
|
material.surface_render_method = "DITHERED"
|
||||||
else:
|
else:
|
||||||
material.blend_method = "HASHED"
|
material.blend_method = "HASHED"
|
||||||
|
|
||||||
# https://developer.blender.org/docs/release_notes/4.2/eevee_migration/#materials
|
# TODO: Find an alternative to `shadow_method` for EEVEE engine
|
||||||
# TODO: Find an alternative for EEVEE engine
|
|
||||||
if (hasattr(material, "shadow_method")):
|
if (hasattr(material, "shadow_method")):
|
||||||
material.shadow_method = "HASHED"
|
material.shadow_method = "HASHED"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user