EEVEE-Next: New shadow settings #113980
|
@ -393,7 +393,7 @@ class OBJECT_PT_visibility(ObjectButtonsPanel, Panel):
|
|||
if ob.type in {'MESH', 'CURVE', 'SURFACE', 'META', 'FONT', 'CURVES', 'POINTCLOUD', 'VOLUME'}:
|
||||
layout.separator()
|
||||
col = layout.column(heading="Ray Visibility")
|
||||
col.prop(ob, "hide_shadow", text="Shadow", toggle=False, invert_checkbox=True)
|
||||
col.prop(ob, "visible_shadow", text="Shadow", toggle=False)
|
||||
fclem marked this conversation as resolved
|
||||
|
||||
if ob.type in {'MESH', 'CURVE', 'SURFACE', 'META', 'FONT', 'CURVES', 'POINTCLOUD', 'VOLUME', 'LIGHT'}:
|
||||
layout.separator()
|
||||
|
|
|
@ -2909,11 +2909,6 @@ static void rna_def_object_visibility(StructRNA *srna)
|
|||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_RENDER_OFF, -1);
|
||||
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Object_hide_update");
|
||||
|
||||
prop = RNA_def_property(srna, "hide_shadow", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, nullptr, "visibility_flag", OB_HIDE_SHADOW);
|
||||
RNA_def_property_ui_text(prop, "Disable Shadow casting", "Globally disable Shadow casting");
|
||||
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Object_internal_update_draw");
|
||||
|
||||
prop = RNA_def_property(srna, "hide_probe_volume", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, nullptr, "visibility_flag", OB_HIDE_PROBE_VOLUME);
|
||||
RNA_def_property_ui_text(prop, "Disable in Volume Probes", "Globally disable in volume probes");
|
||||
|
|
Loading…
Reference in New Issue
Use
hide_shadow
for consistency with the other visibility options for now.I think having 2 different Python properties that change the same flag is going to be quite confusing for Python users.
Nevermind, I replied to this before we decided to unify the setting first. So use cycles naming convention for now. We can still create an alias if we decide to port it later.
We can do that for compatibility reasons.