Cleanup: use 'use' as prefix for booleans
authorCampbell Barton <ideasman42@gmail.com>
Thu, 21 Mar 2019 14:07:24 +0000 (01:07 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 22 Mar 2019 04:43:23 +0000 (15:43 +1100)
release/scripts/startup/bl_ui/properties_data_empty.py
source/blender/makesrna/intern/rna_object.c

index 1f39ce7..8302bc7 100644 (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)
index ec0e9e6..53bcb7e 100644 (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);