Cleanup: use 'use' as prefix for booleans

This commit is contained in:
Campbell Barton 2019-03-22 01:07:24 +11:00
parent c0f96855e4
commit 78ce2063d3
2 changed files with 3 additions and 3 deletions

View File

@ -48,10 +48,10 @@ class DATA_PT_empty(DataButtonsPanel, Panel):
layout.row(align=True).row(align=True)
layout.prop(ob, "empty_image_use_alpha")
layout.prop(ob, "use_empty_image_alpha")
col = layout.column()
col.active = ob.empty_image_use_alpha
col.active = ob.use_empty_image_alpha
col.prop(ob, "color", text="Transparency", index=3, slider=True)
col = layout.column(align=True)

View File

@ -2505,7 +2505,7 @@ static void rna_def_object(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Display in Orthographic Mode", "Display image in orthographic mode");
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, NULL);
prop = RNA_def_property(srna, "empty_image_use_alpha", PROP_BOOLEAN, PROP_NONE);
prop = RNA_def_property(srna, "use_empty_image_alpha", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "empty_image_flag", OB_EMPTY_IMAGE_USE_ALPHA_BLEND);
RNA_def_property_ui_text(prop, "Use Alpha", "Use alpha blending instead of alpha test (can produce sorting artifacts)");
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, NULL);