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>2009-10-09 16:16:58 +0400
committerJoshua Leung <aligorith@gmail.com>2009-10-09 16:16:58 +0400
commit9f7038c5a73d8e73b858a129561d4721481f62e2 (patch)
tree64ec765066f9935bab94656be7afc79ff39283a2 /source/blender/editors/object/object_hook.c
parent488c06d1827d5bf5d02a22fcc11a1dfeb50143a7 (diff)
* Warning fixes for previous commit for Modifier renaming.
* Removed some old code (depsgraph) that was already commented out
Diffstat (limited to 'source/blender/editors/object/object_hook.c')
-rw-r--r--source/blender/editors/object/object_hook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_hook.c b/source/blender/editors/object/object_hook.c
index 63182e943bb..4643b875872 100644
--- a/source/blender/editors/object/object_hook.c
+++ b/source/blender/editors/object/object_hook.c
@@ -480,7 +480,7 @@ void add_hook(Scene *scene, View3D *v3d, int mode)
hmd = (HookModifierData*) modifier_new(eModifierType_Hook);
BLI_insertlinkbefore(&obedit->modifiers, md, hmd);
sprintf(hmd->modifier.name, "Hook-%s", ob->id.name+2);
- modifier_unique_name(&obedit->modifiers, hmd);
+ modifier_unique_name(&obedit->modifiers, (ModifierData*)hmd);
}
else if (hmd->indexar) MEM_freeN(hmd->indexar); /* reassign, hook was set */