[Bf-blender-cvs] [78ce2063d3d] master: Cleanup: use 'use' as prefix for booleans
Campbell Barton
noreply at git.blender.org
Fri Mar 22 05:46:47 CET 2019
Commit: 78ce2063d3dd490fc2450e4e12d9680104e25924
Author: Campbell Barton
Date: Fri Mar 22 01:07:24 2019 +1100
Branches: master
https://developer.blender.org/rB78ce2063d3dd490fc2450e4e12d9680104e25924
Cleanup: use 'use' as prefix for booleans
===================================================================
M release/scripts/startup/bl_ui/properties_data_empty.py
M source/blender/makesrna/intern/rna_object.c
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_data_empty.py b/release/scripts/startup/bl_ui/properties_data_empty.py
index 1f39ce7a0ed..8302bc7cd13 100644
--- a/release/scripts/startup/bl_ui/properties_data_empty.py
+++ b/release/scripts/startup/bl_ui/properties_data_empty.py
@@ -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)
diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c
index ec0e9e6f7d7..53bcb7e0bca 100644
--- a/source/blender/makesrna/intern/rna_object.c
+++ b/source/blender/makesrna/intern/rna_object.c
@@ -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);
More information about the Bf-blender-cvs
mailing list