[Bf-blender-cvs] [2005f16] depsgraph_refactor: Depsgraph: Forgot this in previous commit
Sergey Sharybin
noreply at git.blender.org
Fri Nov 7 14:39:18 CET 2014
Commit: 2005f16f030d8341c623f56760869235c987b5d5
Author: Sergey Sharybin
Date: Fri Nov 7 14:38:55 2014 +0100
Branches: depsgraph_refactor
https://developer.blender.org/rB2005f16f030d8341c623f56760869235c987b5d5
Depsgraph: Forgot this in previous commit
===================================================================
M source/blender/blenkernel/intern/object_update.c
===================================================================
diff --git a/source/blender/blenkernel/intern/object_update.c b/source/blender/blenkernel/intern/object_update.c
index 1be00b6..43899f7 100644
--- a/source/blender/blenkernel/intern/object_update.c
+++ b/source/blender/blenkernel/intern/object_update.c
@@ -36,6 +36,7 @@
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
+#include "BLI_math.h"
#include "BKE_global.h"
#include "BKE_armature.h"
@@ -84,6 +85,11 @@ void BKE_object_constraints_evaluate(EvaluationContext *eval_ctx,
cob = BKE_constraints_make_evalob(scene, ob, NULL, CONSTRAINT_OBTYPE_OBJECT);
BKE_constraints_solve(&ob->constraints, cob, ctime);
BKE_constraints_clear_evalob(cob);
+
+ /* TODO(sergey): This is kind of retarded.. */
+ /* set negative scale flag in object */
+ if (is_negative_m4(ob->obmat)) ob->transflag |= OB_NEG_SCALE;
+ else ob->transflag &= ~OB_NEG_SCALE;
}
}
More information about the Bf-blender-cvs
mailing list