Blender Git Loki

Git Commits -> Revision 37ac685

Revision 37ac685 by Chris Want (master)
June 5, 2004, 14:59 (GMT)
Fixing something else broken broke: The fix for "no action == crash"
prevented rvk editing to work in the action window.

Please not that "if (act) {" (Does the object have an action? Currently
only true for some armatures) and "if (key) {" (does the object have
rvk's keys? Currently only true for meshes) are never both true at the
same time so in the following snippet, the function foo_key() never gets
executed:

if (act) {
if (key) {
foo_key();
else
foo_bar();
}
}

Better is this:

if (key) {
foo_key();
else if (act) {
foo_bar();
}

Commit Details:

Full Hash: 37ac6859516026d5f986360812bf79347bc85181
SVN Revision: 2632
Parent Commit: 7d6f4cd
Lines Changed: +37, -47

2 Modified Paths:

/source/blender/src/editaction.c (+20, -26) (Diff)
/source/blender/src/header_action.c (+17, -21) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021