Commit: c2e56a52678926dde251c2ee89113b168c7ac591
Author: Bastien Montagne
Date:   Sat Dec 20 14:14:36 2014 +0100
Branches: master
https://developer.blender.org/rBc2e56a52678926dde251c2ee89113b168c7ac591

RNA Object.matrix_local: Add a big warning this matrix is only relative to 
parent object.

So 'advanced' parenting like e.g. bones or vertices need further processing
to get a real parent-relative matrix...

===================================================================

M       source/blender/makesrna/intern/rna_object.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_object.c 
b/source/blender/makesrna/intern/rna_object.c
index 2074c57..9741c75 100644
--- a/source/blender/makesrna/intern/rna_object.c
+++ b/source/blender/makesrna/intern/rna_object.c
@@ -2429,7 +2429,9 @@ static void rna_def_object(BlenderRNA *brna)
        prop = RNA_def_property(srna, "matrix_local", PROP_FLOAT, PROP_MATRIX);
        RNA_def_property_multi_array(prop, 2, rna_matrix_dimsize_4x4);
        RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
-       RNA_def_property_ui_text(prop, "Local Matrix", "Parent relative 
transformation matrix");
+       RNA_def_property_ui_text(prop, "Local Matrix", "Parent relative 
transformation matrix - "
+                                "WARNING: Only takes into account 'Object' 
parenting, so e.g. in case of bone parenting "
+                                "you get a matrix relative to the Armature 
object, not to the actual parent bone");
        RNA_def_property_float_funcs(prop, "rna_Object_matrix_local_get", 
"rna_Object_matrix_local_set", NULL);
        RNA_def_property_update(prop, NC_OBJECT | ND_TRANSFORM, NULL);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to