From e8f3fa99de8196a36736381b03015689492137bd Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 1 Sep 2014 20:09:31 +1000 Subject: Support more object types scene-scale (on creation) - lamp - camera - font - empty & effector Also fix inconsistency with apply transform (modified shape-keys for meshes but not curve/lattice) --- source/blender/makesrna/intern/rna_lattice_api.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'source/blender/makesrna/intern/rna_lattice_api.c') diff --git a/source/blender/makesrna/intern/rna_lattice_api.c b/source/blender/makesrna/intern/rna_lattice_api.c index 2738ee58ada..ed0489db1a2 100644 --- a/source/blender/makesrna/intern/rna_lattice_api.c +++ b/source/blender/makesrna/intern/rna_lattice_api.c @@ -38,14 +38,14 @@ #include "BLI_utildefines.h" -#include "ED_lattice.h" - #include "rna_internal.h" /* own include */ #ifdef RNA_RUNTIME -static void rna_Lattice_transform(Lattice *lt, float *mat) +static void rna_Lattice_transform(Lattice *lt, float *mat, int shape_keys) { - ED_lattice_transform(lt, (float (*)[4])mat); + BKE_lattice_transform(lt, (float (*)[4])mat, shape_keys); + + DAG_id_tag_update(<->id, 0); } #else @@ -58,6 +58,7 @@ void RNA_api_lattice(StructRNA *srna) RNA_def_function_ui_description(func, "Transform lattice by a matrix"); parm = RNA_def_float_matrix(func, "matrix", 4, 4, NULL, 0.0f, 0.0f, "", "Matrix", 0.0f, 0.0f); RNA_def_property_flag(parm, PROP_REQUIRED); + RNA_def_boolean(func, "shape_keys", 0, "", "Transform Shape Keys"); } #endif -- cgit v1.2.3