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>2008-06-22 05:31:29 +0400
committerJoshua Leung <aligorith@gmail.com>2008-06-22 05:31:29 +0400
commit86d227367b4cdfa839582077e919e64bf6cf1c8d (patch)
tree2df6b0dd9ef955386e002b41ea5e1cf8563cdbd7 /source/blender/src
parenta1e78a0cca624061929eb3bae4420be5c16fd540 (diff)
Bugfix:
Update-automatically option in IPO-Editor now updates objects using the active IPO-block as their ObAction when transforming keyframes.
Diffstat (limited to 'source/blender/src')
-rw-r--r--source/blender/src/transform_generics.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/src/transform_generics.c b/source/blender/src/transform_generics.c
index eaa4a1d0ecf..6cb7a34d1bc 100644
--- a/source/blender/src/transform_generics.c
+++ b/source/blender/src/transform_generics.c
@@ -325,7 +325,7 @@ void recalcData(TransInfo *t)
else {
for (base=G.scene->base.first; base; base=base->next) {
/* recalculate scale of selected nla-strips */
- if (base->object->nlastrips.first) {
+ if (base->object && base->object->nlastrips.first) {
Object *bob= base->object;
bActionStrip *strip;
@@ -398,8 +398,15 @@ void recalcData(TransInfo *t)
}
}
else if(G.sipo->blocktype==ID_OB) {
+ Object *ob= OBACT;
Base *base= FIRSTBASE;
+ /* only if this if active object has this ipo in an action (assumes that current ipo is in action) */
+ if ((ob) && (ob->ipoflag & OB_ACTION_OB) && (G.sipo->pin==0)) {
+ ob->ctime= -1234567.0f;
+ DAG_object_flush_update(G.scene, ob, OB_RECALC_OB);
+ }
+
while(base) {
if(base->object->ipo==G.sipo->ipo) {
do_ob_ipo(base->object);