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>2018-09-27 01:51:26 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-09-27 01:51:47 +0300
commitc5c987cde9da3f19280856f53a82024d0646ee50 (patch)
treee152c838455c6c8fc8c3a30f2e0138ece0b3b60e /source/blender/makesrna/intern/rna_gpencil.c
parent5732d9e1dcc08d284d7f9f56be22ad901fd53f22 (diff)
Cleanup: flip option unlock -> lock
Nearly all options are currently to toggle locking.
Diffstat (limited to 'source/blender/makesrna/intern/rna_gpencil.c')
-rw-r--r--source/blender/makesrna/intern/rna_gpencil.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/makesrna/intern/rna_gpencil.c b/source/blender/makesrna/intern/rna_gpencil.c
index 48e1261f815..ac7a6da6c18 100644
--- a/source/blender/makesrna/intern/rna_gpencil.c
+++ b/source/blender/makesrna/intern/rna_gpencil.c
@@ -1097,12 +1097,10 @@ static void rna_def_gpencil_layer(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Frame Locked", "Lock current frame displayed by layer");
RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, "rna_GPencil_update");
- /* Unlock colors */
- prop = RNA_def_property(srna, "unlock_material", PROP_BOOLEAN, PROP_NONE);
- RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_LAYER_UNLOCK_COLOR);
+ prop = RNA_def_property(srna, "lock_material", PROP_BOOLEAN, PROP_NONE);
+ RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", GP_LAYER_UNLOCK_COLOR);
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
- RNA_def_property_ui_text(prop, "Override Locked Materials",
- "Allow Locked Materials edition");
+ RNA_def_property_ui_text(prop, "Lock Material", "Disable Material editing");
RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, NULL);