Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-03-21 17:07:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-22 07:43:23 +0300
commit78ce2063d3dd490fc2450e4e12d9680104e25924 (patch)
treed11708f9ccf392d91fc89dd1c19340589f4bf393
parentc0f96855e42e45895605fc1023242e114ea6e54b (diff)
Cleanup: use 'use' as prefix for booleans
-rw-r--r--release/scripts/startup/bl_ui/properties_data_empty.py4
-rw-r--r--source/blender/makesrna/intern/rna_object.c2
2 files changed, 3 insertions, 3 deletions
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);