Fix #28280: Insert Hook wrong index
[blender-staging.git] / source / blender / editors / mesh / editmesh.c
index 4377fb036326d0796db820e085d196a54e2a486d..e371c346f362c7ddddb8efb9f193d667e736d502 100644 (file)
@@ -1099,7 +1099,7 @@ void load_editMesh(Scene *scene, Object *obedit)
                int j;
 
                for (ob=G.main->object.first; ob; ob=ob->id.next) {
-                       if (ob->parent==ob && ELEM(ob->partype, PARVERT1,PARVERT3)) {
+                       if (ob->parent==obedit && ELEM(ob->partype, PARVERT1,PARVERT3)) {
                                
                                /* duplicate code from below, make it function later...? */
                                if (!vertMap) {