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:
authorJoshua Leung <aligorith@gmail.com>2007-08-18 10:17:50 +0400
committerJoshua Leung <aligorith@gmail.com>2007-08-18 10:17:50 +0400
commit982d45162b5bf02127b16a9ede693bca99431427 (patch)
tree958adbe216df049c92269b731f552f0617bcbea0 /source/blender/blenkernel/bad_level_call_stubs/stubs.c
parent373ac35c71337cb45e3aaefd333c599b80fcf91e (diff)
== PyConstraints ==
I've added the ability for PyConstraints to define a function (doDriver) that is able to directly modify values of the owner/target, so that certain setups can be created reliably. Users should take note that this is against the basic concept of what a constraint does, and that under no circumstances may they set the values of any variables controlling the transforms. For more details, check out the information in the PyConstraint template script. I've also updated PyConstraints to be aware of geometry targets. The script template has been updated with this information.
Diffstat (limited to 'source/blender/blenkernel/bad_level_call_stubs/stubs.c')
-rw-r--r--source/blender/blenkernel/bad_level_call_stubs/stubs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenkernel/bad_level_call_stubs/stubs.c b/source/blender/blenkernel/bad_level_call_stubs/stubs.c
index 340ac1ed693..0c81cdfa245 100644
--- a/source/blender/blenkernel/bad_level_call_stubs/stubs.c
+++ b/source/blender/blenkernel/bad_level_call_stubs/stubs.c
@@ -125,10 +125,13 @@ int BPY_button_eval(char *expr, double *value)
return 0;
}
-/* constraint.c */
+/* PyConstraints - BPY_interface.c */
void BPY_pyconstraint_eval(struct bPythonConstraint *con, float ownermat[][4], float targetmat[][4])
{
}
+void BPY_pyconstraint_driver(struct bPythonConstraint *con, struct bConstraintOb *cob, struct Object *target, char subtarget[])
+{
+}
int BPY_pyconstraint_targets(struct bPythonConstraint *con, float targetmat[][4])
{
return 0;