patch by Paolo Acampora with some edits.
if (!ob_arm)
continue;
- ED_armature_to_edit(ob_arm);
+ ED_armature_to_edit(ob_arm->data);
/*
* TODO:
// exit armature edit mode
unskinned_armature_map[(*ri)->getUniqueId()] = ob_arm;
- ED_armature_from_edit(ob_arm);
+ ED_armature_from_edit(ob_arm->data);
//This serves no purpose, as pose is automatically reset later, in BKE_where_is_bone()
//set_pose(ob_arm, *ri, NULL, NULL);
- ED_armature_edit_free(ob_arm);
+ ED_armature_edit_free(ob_arm->data);
DAG_id_tag_update(&ob_arm->id, OB_RECALC_OB | OB_RECALC_DATA);
}
}
}
// enter armature edit mode
- ED_armature_to_edit(ob_arm);
+ ED_armature_to_edit(ob_arm->data);
leaf_bones.clear();
totbone = 0;
fix_leaf_bones();
// exit armature edit mode
- ED_armature_from_edit(ob_arm);
- ED_armature_edit_free(ob_arm);
+ ED_armature_from_edit(ob_arm->data);
+ ED_armature_edit_free(ob_arm->data);
DAG_id_tag_update(&ob_arm->id, OB_RECALC_OB | OB_RECALC_DATA);
}
void ED_armature_apply_transform(Object *ob, float mat[4][4])
{
- EditBone *ebone;
bArmature *arm = ob->data;
+
+ /* Put the armature into editmode */
+ ED_armature_to_edit(arm);
+
+ /* Transform the bones*/
+ ED_armature_transform_bones(arm, mat);
+
+ /* Turn the list into an armature */
+ ED_armature_from_edit(arm);
+ ED_armature_edit_free(arm);
+}
+
+void ED_armature_transform_bones(struct bArmature *arm, float mat[4][4])
+{
+ EditBone *ebone;
float scale = mat4_to_scale(mat); /* store the scale of the matrix here to use on envelopes */
float mat3[3][3];
-
+
copy_m3_m4(mat3, mat);
normalize_m3(mat3);
-
- /* Put the armature into editmode */
- ED_armature_to_edit(ob);
-
/* Do the rotations */
for (ebone = arm->edbo->first; ebone; ebone = ebone->next) {
float tmat[3][3];
/* transform the bone */
mul_m4_v3(mat, ebone->head);
mul_m4_v3(mat, ebone->tail);
-
+
/* apply the transfiormed roll back */
mat3_to_vec_roll(tmat, NULL, &ebone->roll);
ebone->xwidth *= scale;
ebone->zwidth *= scale;
}
-
- /* Turn the list into an armature */
- ED_armature_from_edit(ob);
- ED_armature_edit_free(ob);
+}
+
+void ED_armature_transform(struct bArmature *arm, float mat[4][4])
+{
+ if (arm->edbo) {
+ ED_armature_transform_bones(arm, mat);
+ }
+ else {
+ /* Put the armature into editmode */
+ ED_armature_to_edit(arm);
+
+ /* Transform the bones */
+ ED_armature_transform_bones(arm, mat);
+
+ /* Go back to object mode*/
+ ED_armature_from_edit(arm);
+ ED_armature_edit_free(arm);
+ }
}
/* exported for use in editors/object/ */
/* Put the armature into editmode */
if (ob != obedit) {
- ED_armature_to_edit(ob);
+ ED_armature_to_edit(arm);
obedit = NULL; /* we cant use this so behave as if there is no obedit */
}
/* Turn the list into an armature */
if (obedit == NULL) {
- ED_armature_from_edit(ob);
- ED_armature_edit_free(ob);
+ ED_armature_from_edit(arm);
+ ED_armature_edit_free(arm);
}
/* Adjust object location for new centerpoint */
}
/* Get editbones of active armature to add editbones to */
- ED_armature_to_edit(ob);
+ ED_armature_to_edit(arm);
/* get pose of active object and move it out of posemode */
pose = ob->pose;
bArmature *curarm = base->object->data;
/* Make a list of editbones in current armature */
- ED_armature_to_edit(base->object);
+ ED_armature_to_edit(base->object->data);
/* Get Pose of current armature */
opose = base->object->pose;
DAG_relations_tag_update(bmain); /* because we removed object(s) */
- ED_armature_from_edit(ob);
- ED_armature_edit_free(ob);
+ ED_armature_from_edit(arm);
+ ED_armature_edit_free(arm);
WM_event_add_notifier(C, NC_SCENE | ND_OB_ACTIVE, scene);
EditBone *curbone;
/* make local set of editbones to manipulate here */
- ED_armature_to_edit(ob);
+ ED_armature_to_edit(arm);
/* go through pose-channels, checking if a bone should be removed */
for (pchan = ob->pose->chanbase.first; pchan; pchan = pchann) {
}
/* exit editmode (recalculates pchans too) */
- ED_armature_from_edit(ob);
- ED_armature_edit_free(ob);
+ ED_armature_from_edit(ob->data);
+ ED_armature_edit_free(ob->data);
}
/* separate selected bones into their armature */
oldob->mode &= ~OB_MODE_POSE;
//oldbase->flag &= ~OB_POSEMODE;
- ED_armature_from_edit(obedit);
- ED_armature_edit_free(obedit);
+ ED_armature_from_edit(obedit->data);
+ ED_armature_edit_free(obedit->data);
/* 2) duplicate base */
newbase = ED_object_add_duplicate(bmain, scene, oldbase, USER_DUP_ARM); /* only duplicate linked armature */
/* 5) restore original conditions */
obedit = oldob;
- ED_armature_to_edit(obedit);
+ ED_armature_to_edit(obedit->data);
BKE_report(op->reports, RPT_INFO, "Separated bones");
}
/* put EditMode back in Object */
-void ED_armature_from_edit(Object *obedit)
+void ED_armature_from_edit(bArmature *arm)
{
- bArmature *arm = obedit->data;
EditBone *eBone, *neBone;
Bone *newBone;
Object *obt;
BKE_pose_rebuild(obt, arm);
}
- DAG_id_tag_update(&obedit->id, OB_RECALC_DATA);
+ DAG_id_tag_update(&arm->id, 0);
}
-void ED_armature_edit_free(struct Object *ob)
+void ED_armature_edit_free(struct bArmature *arm)
{
- bArmature *arm = ob->data;
EditBone *eBone;
/* Clear the editbones list */
}
/* Put armature in EditMode */
-void ED_armature_to_edit(Object *ob)
+void ED_armature_to_edit(bArmature *arm)
{
- bArmature *arm = ob->data;
-
- ED_armature_edit_free(ob);
+ ED_armature_edit_free(arm);
arm->edbo = MEM_callocN(sizeof(ListBase), "edbo armature");
arm->act_edbone = make_boneList(arm->edbo, &arm->bonebase, NULL, arm->act_bone);
/* Turn the list into an armature */
arm->edbo = rigg->editbones;
- ED_armature_from_edit(rigg->ob);
+ ED_armature_from_edit(arm);
ED_undo_push(C, "Retarget Skeleton");
}
/* Turn the list into an armature */
arm->edbo = rigg->editbones;
- ED_armature_from_edit(rigg->ob);
+ ED_armature_from_edit(arm);
}
const char *RIG_nameBone(RigGraph *rg, int arc_index, int bone_index)
"transforms stored are relative to the old rest pose");
/* Get editbones of active armature to alter */
- ED_armature_to_edit(ob);
+ ED_armature_to_edit(arm);
/* get pose of active object and move it out of posemode */
pose = ob->pose;
}
/* convert editbones back to bones, and then free the edit-data */
- ED_armature_from_edit(ob);
- ED_armature_edit_free(ob);
+ ED_armature_from_edit(arm);
+ ED_armature_edit_free(arm);
/* flush positions of posebones */
BKE_pose_where_is(scene, ob);
}
}
+/******************** transform operator **********************/
+
+void ED_curve_transform(Curve *cu, float mat[4][4])
+{
+ Nurb *nu;
+ BPoint *bp;
+ BezTriple *bezt;
+ int a;
+
+ float scale = mat4_to_scale(mat);
+
+ for (nu = cu->nurb.first; nu; nu = nu->next) {
+ if (nu->type == CU_BEZIER) {
+ a = nu->pntsu;
+ for (bezt = nu->bezt; a--; bezt++) {
+ mul_m4_v3(mat, bezt->vec[0]);
+ mul_m4_v3(mat, bezt->vec[1]);
+ mul_m4_v3(mat, bezt->vec[2]);
+ bezt->radius *= scale;
+ }
+ BKE_nurb_handles_calc(nu);
+ }
+ else {
+ a = nu->pntsu * nu->pntsv;
+ for (bp = nu->bp; a--; bp++)
+ mul_m4_v3(mat, bp->vec);
+ }
+ }
+ DAG_id_tag_update(&cu->id, 0);
+}
+
/******************** separate operator ***********************/
static int separate_exec(bContext *C, wmOperator *op)
void ED_keymap_armature(struct wmKeyConfig *keyconf);
/* editarmature.c */
-void ED_armature_from_edit(struct Object *obedit);
-void ED_armature_to_edit(struct Object *ob);
-void ED_armature_edit_free(struct Object *ob);
+void ED_armature_from_edit(struct bArmature *arm);
+void ED_armature_to_edit(struct bArmature *arm);
+void ED_armature_edit_free(struct bArmature *arm);
void ED_armature_deselect_all(struct Object *obedit, int toggle);
void ED_armature_deselect_all_visible(struct Object *obedit);
void transform_armature_mirror_update(struct Object *obedit);
void ED_armature_origin_set(struct Scene *scene, struct Object *ob, float cursor[3], int centermode, int around);
+void ED_armature_transform_bones(struct bArmature *arm, float mat[4][4]);
void ED_armature_apply_transform(struct Object *ob, float mat[4][4]);
+void ED_armature_transform(struct bArmature *arm, float mat[4][4]);
#define ARM_GROUPS_NAME 1
#define ARM_GROUPS_ENVELOPE 2
void ED_keymap_curve(struct wmKeyConfig *keyconf);
/* editcurve.c */
+void ED_curve_transform(struct Curve *cv, float mat[4][4]);
void CU_deselect_all(struct Object *obedit);
void CU_select_all(struct Object *obedit);
void CU_select_swap(struct Object *obedit);
#define __ED_LATTICE_H__
struct Object;
+struct Lattice;
void free_editLatt(struct Object *ob);
void make_editLatt(struct Object *obedit);
void load_editLatt(struct Object *obedit);
+void ED_lattice_transform(struct Lattice *lt, float mat[4][4]);
#endif /* __ED_LATTICE_H__ */
void undo_push_mball(struct bContext *C, const char *name);
-void ED_mball_transform(struct MetaBall *mb, float *mat);
+void ED_mball_transform(struct MetaBall *mb, float mat[4][4]);
#endif /* __ED_MBALL_H__ */
void ED_mesh_edges_remove(struct Mesh *mesh, struct ReportList *reports, int count);
void ED_mesh_vertices_remove(struct Mesh *mesh, struct ReportList *reports, int count);
-void ED_mesh_transform(struct Mesh *me, float *mat);
+void ED_mesh_transform(struct Mesh *me, float mat[4][4]);
void ED_mesh_calc_tessface(struct Mesh *mesh);
void ED_mesh_update(struct Mesh *mesh, struct bContext *C, int calc_edges, int calc_tessface);
mesh->totvert = totvert;
}
-void ED_mesh_transform(Mesh *me, float *mat)
+void ED_mesh_transform(Mesh *me, float mat[4][4])
{
int i;
MVert *mvert = me->mvert;
for (i = 0; i < me->totvert; i++, mvert++)
- mul_m4_v3((float (*)[4])mat, mvert->co);
+ mul_m4_v3(mat, mvert->co);
/* don't update normals, caller can do this explicitly */
}
undo_editmode_push(C, name, get_data, free_undoMball, undoMball_to_editMball, editMball_to_undoMball, NULL);
}
-/* matrix is 4x4 */
-void ED_mball_transform(MetaBall *mb, float *mat)
+void ED_mball_transform(MetaBall *mb, float mat[4][4])
{
MetaElem *me;
float quat[4];
- const float scale = mat4_to_scale((float (*)[4])mat);
+ const float scale = mat4_to_scale(mat);
const float scale_sqrt = sqrtf(scale);
- mat4_to_quat(quat, (float (*)[4])mat);
+ mat4_to_quat(quat, mat);
for (me = mb->elems.first; me; me = me->next) {
- mul_m4_v3((float (*)[4])mat, &me->x);
+ mul_m4_v3(mat, &me->x);
mul_qt_qtqt(me->quat, quat, me->quat);
me->rad *= scale;
/* hrmf, probably elems shouldn't be
mul_v3_fl(&me->expx, scale_sqrt);
}
}
+ DAG_id_tag_update(&mb->id, 0);
}
}
}
else if (obedit->type == OB_ARMATURE) {
- ED_armature_from_edit(obedit);
+ ED_armature_from_edit(obedit->data);
if (freedata)
- ED_armature_edit_free(obedit);
+ ED_armature_edit_free(obedit->data);
}
else if (ELEM(obedit->type, OB_CURVE, OB_SURF)) {
load_editNurb(obedit);
WM_event_add_notifier(C, NC_SCENE | ND_MODE | NS_EDITMODE_MESH, scene);
}
else if (ob->type == OB_ARMATURE) {
- bArmature *arm = base->object->data;
+ bArmature *arm = ob->data;
if (!arm) return;
/*
* The function BKE_object_obdata_is_libdata make a problem here, the
}
ok = 1;
scene->obedit = ob;
- ED_armature_to_edit(ob);
+ ED_armature_to_edit(arm);
/* to ensure all goes in restposition and without striding */
DAG_id_tag_update(&ob->id, OB_RECALC_OB | OB_RECALC_DATA | OB_RECALC_TIME); /* XXX: should this be OB_RECALC_DATA? */
}
}
+/*************************** Transform Operator ************************/
+
+void ED_lattice_transform(Lattice *lt, float mat[4][4])
+{
+ BPoint *bp = lt->def;
+ int a = lt->pntsu * lt->pntsv * lt->pntsw;
+
+ while (a--) {
+ mul_m4_v3(mat, bp->vec);
+ bp++;
+ }
+
+ DAG_id_tag_update(<->id, 0);
+}
+
/************************** Select Random Operator **********************/
static int lattice_select_random_exec(bContext *C, wmOperator *op)
MEM_freeN(emap);
MEM_freeN(emap_mem);
- ED_armature_from_edit(arm_ob);
- ED_armature_edit_free(arm_ob);
+ ED_armature_from_edit(arm);
+ ED_armature_edit_free(arm);
return arm_ob;
}
}
else if (ob->type == OB_MBALL) {
MetaBall *mb = ob->data;
- ED_mball_transform(mb, (float *)mat);
+ ED_mball_transform(mb, mat);
}
else if (ELEM(ob->type, OB_CURVE, OB_SURF)) {
Curve *cu = ob->data;
}
}
else if (ob->type == OB_ARMATURE) {
- ED_armature_edit_free(ob);
+ ED_armature_edit_free(ob->data);
}
}
}
rna_armature_api.c
rna_camera_api.c
rna_controller_api.c
+ rna_curve_api.c
rna_fcurve_api.c
rna_image_api.c
+ rna_lattice_api.c
rna_main_api.c
rna_material_api.c
rna_mesh_api.c
{"rna_constraint.c", NULL, RNA_def_constraint},
{"rna_context.c", NULL, RNA_def_context},
{"rna_controller.c", "rna_controller_api.c", RNA_def_controller},
- {"rna_curve.c", NULL, RNA_def_curve},
+ {"rna_curve.c", "rna_curve_api.c", RNA_def_curve},
{"rna_dynamicpaint.c", NULL, RNA_def_dynamic_paint},
{"rna_fcurve.c", "rna_fcurve_api.c", RNA_def_fcurve},
{"rna_fluidsim.c", NULL, RNA_def_fluidsim},
{"rna_image.c", "rna_image_api.c", RNA_def_image},
{"rna_key.c", NULL, RNA_def_key},
{"rna_lamp.c", NULL, RNA_def_lamp},
- {"rna_lattice.c", NULL, RNA_def_lattice},
+ {"rna_lattice.c", "rna_lattice_api.c", RNA_def_lattice},
{"rna_linestyle.c", NULL, RNA_def_linestyle},
{"rna_main.c", "rna_main_api.c", RNA_def_main},
{"rna_material.c", "rna_material_api.c", RNA_def_material},
return (arm->edbo != NULL);
}
+void rna_Armature_transform(struct bArmature *arm, float *mat)
+{
+ ED_armature_transform(arm, (float (*)[4])mat);
+}
+
#else
static void rna_def_bone_common(StructRNA *srna, int editbone)
static void rna_def_armature(BlenderRNA *brna)
{
StructRNA *srna;
+ FunctionRNA *func;
PropertyRNA *prop;
static EnumPropertyItem prop_drawtype_items[] = {
"Armature datablock containing a hierarchy of bones, usually used for rigging characters");
RNA_def_struct_ui_icon(srna, ICON_ARMATURE_DATA);
RNA_def_struct_sdna(srna, "bArmature");
-
+
+ func = RNA_def_function(srna, "transform", "rna_Armature_transform");
+ RNA_def_function_ui_description(func, "Transform armature bones by a matrix");
+ prop = RNA_def_float_matrix(func, "matrix", 4, 4, NULL, 0.0f, 0.0f, "", "Matrix", 0.0f, 0.0f);
+ RNA_def_property_flag(prop, PROP_REQUIRED);
+
/* Animation Data */
rna_def_animdata_common(srna);
RNA_def_struct_ui_text(srna, "Curve", "Curve datablock storing curves, splines and NURBS");
RNA_def_struct_ui_icon(srna, ICON_CURVE_DATA);
RNA_def_struct_refine_func(srna, "rna_Curve_refine");
-
- rna_def_animdata_common(srna);
+
prop = RNA_def_property(srna, "shape_keys", PROP_POINTER, PROP_NONE);
RNA_def_property_pointer_sdna(prop, NULL, "key");
RNA_def_property_boolean_funcs(prop, "rna_Curve_is_editmode_get", NULL);
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
RNA_def_property_ui_text(prop, "Is Editmode", "True when used in editmode");
+
+ rna_def_animdata_common(srna);
+
+ RNA_api_curve(srna);
}
static void rna_def_curve_nurb(BlenderRNA *brna)
--- /dev/null
+/*
+ * ***** BEGIN GPL LICENSE BLOCK *****
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * The Original Code is Copyright (C) 2009 Blender Foundation.
+ * All rights reserved.
+ *
+ *
+ * Contributor(s): Blender Foundation
+ *
+ * ***** END GPL LICENSE BLOCK *****
+ */
+
+/** \file blender/makesrna/intern/rna_curve_api.c
+ * \ingroup RNA
+ */
+
+
+#include <stdlib.h>
+#include <stdio.h>
+
+#include "RNA_define.h"
+
+#include "BLI_sys_types.h"
+
+#include "BLI_utildefines.h"
+
+#include "ED_curve.h"
+
+#include "rna_internal.h" /* own include */
+
+#ifdef RNA_RUNTIME
+void rna_Curve_transform(Curve *cu, float *mat)
+{
+ ED_curve_transform(cu, (float (*)[4])mat);
+}
+#else
+
+void RNA_api_curve(StructRNA *srna)
+{
+ FunctionRNA *func;
+ PropertyRNA *parm;
+
+ func = RNA_def_function(srna, "transform", "rna_Curve_transform");
+ RNA_def_function_ui_description(func, "Transform curve 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);
+}
+
+#endif
void RNA_api_armature_edit_bone(StructRNA *srna);
void RNA_api_bone(StructRNA *srna);
void RNA_api_camera(StructRNA *srna);
+void RNA_api_curve(StructRNA *srna);
void RNA_api_drivers(StructRNA *srna);
void RNA_api_image(struct StructRNA *srna);
+void RNA_api_lattice(struct StructRNA *srna);
void RNA_api_operator(struct StructRNA *srna);
void RNA_api_macro(struct StructRNA *srna);
void RNA_api_keyconfig(struct StructRNA *srna);
#include "WM_api.h"
#include "WM_types.h"
+#include "ED_lattice.h"
static void rna_LatticePoint_co_get(PointerRNA *ptr, float *values)
{
/* pointers */
rna_def_animdata_common(srna);
+
+ RNA_api_lattice(srna);
}
void RNA_def_lattice(BlenderRNA *brna)
--- /dev/null
+/*
+ * ***** BEGIN GPL LICENSE BLOCK *****
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * The Original Code is Copyright (C) 2009 Blender Foundation.
+ * All rights reserved.
+ *
+ *
+ * Contributor(s): Blender Foundation
+ *
+ * ***** END GPL LICENSE BLOCK *****
+ */
+
+/** \file blender/makesrna/intern/rna_lattice_api.c
+ * \ingroup RNA
+ */
+
+
+#include <stdlib.h>
+#include <stdio.h>
+
+#include "RNA_define.h"
+
+#include "BLI_sys_types.h"
+
+#include "BLI_utildefines.h"
+
+#include "ED_lattice.h"
+
+#include "rna_internal.h" /* own include */
+
+#ifdef RNA_RUNTIME
+void rna_Lattice_transform(Lattice *lt, float *mat)
+{
+ ED_lattice_transform(lt, (float (*)[4])mat);
+}
+#else
+
+void RNA_api_lattice(StructRNA *srna)
+{
+ FunctionRNA *func;
+ PropertyRNA *parm;
+
+ func = RNA_def_function(srna, "transform", "rna_Lattice_transform");
+ 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);
+}
+
+#endif
r_group_total, use_bitflags);
}
+static void rna_Mesh_transform(Mesh *mesh, float *mat)
+{
+ ED_mesh_transform(mesh, (float (*)[4])mat);
+}
+
#else
void RNA_api_mesh(StructRNA *srna)
FunctionRNA *func;
PropertyRNA *parm;
- func = RNA_def_function(srna, "transform", "ED_mesh_transform");
+ func = RNA_def_function(srna, "transform", "rna_Mesh_transform");
RNA_def_function_ui_description(func, "Transform mesh vertices 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);
#include "rna_internal.h" /* own include */
#ifdef RNA_RUNTIME
-/* none */
+void rna_Meta_transform(struct MetaBall *mb, float *mat)
+{
+ ED_mball_transform(mb, (float (*)[4])mat);
+}
#else
void RNA_api_meta(StructRNA *srna)
FunctionRNA *func;
PropertyRNA *parm;
- func = RNA_def_function(srna, "transform", "ED_mball_transform");
+ func = RNA_def_function(srna, "transform", "rna_Meta_transform");
RNA_def_function_ui_description(func, "Transform meta elements 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);
void WM_event_add_notifier(const struct bContext *C, unsigned int type, void *reference) {STUB_ASSERT(0);}
void WM_main_add_notifier(unsigned int type, void *reference) {STUB_ASSERT(0);}
void ED_armature_bone_rename(struct bArmature *arm, char *oldnamep, char *newnamep) {STUB_ASSERT(0);}
+void ED_armature_transform(struct bArmature *arm, float mat[4][4]) {STUB_ASSERT(0);}
struct wmEventHandler *WM_event_add_modal_handler(struct bContext *C, struct wmOperator *op) {STUB_ASSERT(0); return (struct wmEventHandler *)NULL;}
struct wmTimer *WM_event_add_timer(struct wmWindowManager *wm, struct wmWindow *win, int event_type, double timestep) {STUB_ASSERT(0); return (struct wmTimer *)NULL;}
void WM_event_remove_timer(struct wmWindowManager *wm, struct wmWindow *win, struct wmTimer *timer) {STUB_ASSERT(0);}
void ED_area_tag_refresh(struct ScrArea *sa) {STUB_ASSERT(0);}
void ED_area_newspace(struct bContext *C, struct ScrArea *sa, int type) {STUB_ASSERT(0);}
void ED_region_tag_redraw(struct ARegion *ar) {STUB_ASSERT(0);}
+void ED_curve_transform(struct Curve *cv, float mat[4][4]) {STUB_ASSERT(0);}
void WM_event_add_fileselect(struct bContext *C, struct wmOperator *op) {STUB_ASSERT(0);}
void WM_cursor_wait(int val) {STUB_ASSERT(0);}
void ED_node_texture_default(struct bContext *C, struct Tex *tx) {STUB_ASSERT(0);}
void ED_base_object_free_and_unlink(struct Scene *scene, struct Base *base) {STUB_ASSERT(0);}
void ED_mesh_geometry_add(struct Mesh *mesh, struct ReportList *reports, int verts, int edges, int faces) {STUB_ASSERT(0);}
void ED_mesh_material_add(struct Mesh *me, struct Material *ma) {STUB_ASSERT(0);}
-void ED_mesh_transform(struct Mesh *me, float *mat) {STUB_ASSERT(0);}
+void ED_mesh_transform(struct Mesh *me, float mat[4][4]) {STUB_ASSERT(0);}
void ED_mesh_update(struct Mesh *mesh, struct bContext *C) {STUB_ASSERT(0);}
void ED_mesh_vertices_add(struct Mesh *mesh, struct ReportList *reports, int count) {STUB_ASSERT(0);}
void ED_mesh_edges_add(struct Mesh *mesh, struct ReportList *reports, int count) {STUB_ASSERT(0);}
void ED_nurb_set_spline_type(struct Nurb *nu, int type) {STUB_ASSERT(0);}
-void ED_mball_transform(struct MetaBall *mb, float *mat) {STUB_ASSERT(0);}
+void ED_mball_transform(struct MetaBall *mb, float mat[4][4]) {STUB_ASSERT(0);}
bool snapObjectsRayEx(struct Scene *scene, struct Base *base_act) {STUB_ASSERT(0); return 0;}
void make_editLatt(struct Object *obedit) {STUB_ASSERT(0);}
void load_editLatt(struct Object *obedit) {STUB_ASSERT(0);}
+void ED_lattice_transform(struct Lattice *lt, float mat[4][4]) {STUB_ASSERT(0);}
void load_editNurb(struct Object *obedit) {STUB_ASSERT(0);}
void make_editNurb(struct Object *obedit) {STUB_ASSERT(0);}