Two quick bugfixes, thanks slikdigit!

- armature modifier was not flagged to require original data (but it
   does)
 - add hook messed up the ModifierData initialization, stupid bug!
This commit is contained in:
2005-08-11 05:45:47 +00:00
parent 1fd6ce391b
commit 5c74f25c8a
2 changed files with 3 additions and 3 deletions

View File

@@ -623,8 +623,8 @@ void add_hook(void)
/* new hook */
if(mode==1 || mode==2) {
hmd = (HookModifierData*) modifier_new(eModifierType_Hook);
BLI_addtail(&G.obedit->modifiers, &hmd); // XXX, ordering
sprintf("Hook-%s", hmd->modifier.name, ob->id.name+2);
BLI_addtail(&G.obedit->modifiers, hmd); // XXX, ordering
sprintf(hmd->modifier.name, "Hook-%s", ob->id.name+2);
}
else if (hmd->indexar) MEM_freeN(hmd->indexar); // reassign, hook was set