[Bf-blender-cvs] [4e2667ddf6b] blender2.7: Constraints: Mark proxy lcoal as not editable
Sergey Sharybin
noreply at git.blender.org
Tue Apr 2 17:47:20 CEST 2019
Commit: 4e2667ddf6b3447c5a56cf42fdb7b154d7eb95d4
Author: Sergey Sharybin
Date: Tue Apr 2 17:43:33 2019 +0200
Branches: blender2.7
https://developer.blender.org/rB4e2667ddf6b3447c5a56cf42fdb7b154d7eb95d4
Constraints: Mark proxy lcoal as not editable
This can not work reliably anyway.
===================================================================
M source/blender/makesrna/intern/rna_constraint.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_constraint.c b/source/blender/makesrna/intern/rna_constraint.c
index bddc4136622..78791b1c875 100644
--- a/source/blender/makesrna/intern/rna_constraint.c
+++ b/source/blender/makesrna/intern/rna_constraint.c
@@ -2549,6 +2549,7 @@ void RNA_def_constraint(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Active", "Constraint is the one being edited");
prop = RNA_def_property(srna, "is_proxy_local", PROP_BOOLEAN, PROP_NONE);
+ RNA_def_property_clear_flag(prop, PROP_EDITABLE);
RNA_def_property_boolean_sdna(prop, NULL, "flag", CONSTRAINT_PROXY_LOCAL);
RNA_def_property_ui_text(prop, "Proxy Local",
"Constraint was added in this proxy instance (i.e. did not belong to source Armature)");
More information about the Bf-blender-cvs
mailing list