Context operators for adjusting context values directly to avoid adding operators...
[blender.git] / source / blender / editors / transform / transform_generics.c
index c8066f03abfca91584198b2b8cd171a84651c0b7..5fe9db3915f66f54c9b0aa7464fe4cb1f900a135 100644 (file)
@@ -995,10 +995,10 @@ int initTransInfo (bContext *C, TransInfo *t, wmOperator *op, wmEvent *event)
                }
                else
                {
                }
                else
                {
-                       if ((t->options & CTX_NO_PET) == 0 && (ts->proportional)) {
+                       if ((t->options & CTX_NO_PET) == 0 && (ts->proportional != PROP_EDIT_OFF)) {
                                t->flag |= T_PROP_EDIT;
                                
                                t->flag |= T_PROP_EDIT;
                                
-                               if(ts->proportional == 2)
+                               if(ts->proportional == PROP_EDIT_CONNECTED)
                                        t->flag |= T_PROP_CONNECTED;    // yes i know, has to become define
                        }
                }
                                        t->flag |= T_PROP_CONNECTED;    // yes i know, has to become define
                        }
                }