code cleanup: move get_selected_defgroups into object_deform.c and make it behave...
[blender.git] / source / blender / blenkernel / intern / deform.c
index 547a64a70d416f382a18b4f86c940fcc82035c9a..aef9543a8e2376cb70498f6c0e59ea293bd6ac3e 100644 (file)
@@ -210,7 +210,9 @@ void defvert_normalize_lock(MDeformVert *dvert, const int def_nr_lock)
                /* nothing */
        }
        else if (dvert->totweight == 1) {
-               dvert->dw[0].weight = 1.0f;
+               if (def_nr_lock != 0) {
+                       dvert->dw[0].weight = 1.0f;
+               }
        }
        else {
                MDeformWeight *dw_lock = NULL;