overlapping UI causing problems, forgot the label has a function assigned to it
authorCampbell Barton <ideasman42@gmail.com>
Thu, 4 Sep 2008 12:17:01 +0000 (12:17 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 4 Sep 2008 12:17:01 +0000 (12:17 +0000)
source/blender/src/buttons_logic.c

index ec268af7d863aeb5553aecd13cc08759089c59f1..9c66b7831bb49d30c7f7861e3150025d0c64c35b 100644 (file)
@@ -3398,7 +3398,7 @@ void logic_buts(void)
                                                glRecti(xco+22, yco, xco+width-22,yco+19);
                                                but= uiDefBut(block, LABEL, 0, sensor_name(sens->type), (short)(xco+22), yco, 80, 19, sens, 0, 0, 0, 0, "");
                                                uiButSetFunc(but, sca_move_sensor, sens, NULL);
-                                               but= uiDefBut(block, LABEL, 0, sens->name, (short)(xco+102), yco, (short)(width-124), 19, sens, 0, 31, 0, 0, "");
+                                               but= uiDefBut(block, LABEL, 0, sens->name, (short)(xco+102), yco, (short)(width-(pin?146:124)), 19, sens, 0, 31, 0, 0, "");
                                                uiButSetFunc(but, sca_move_sensor, sens, NULL);
                                        }
 
@@ -3474,7 +3474,7 @@ void logic_buts(void)
                                                glRecti((short)(xco+22), yco, (short)(xco+width-22),(short)(yco+19));
                                                but= uiDefBut(block, LABEL, 0, actuator_name(act->type), (short)(xco+22), yco, 90, 19, act, 0, 0, 0, 0, "Actuator type");
                                                uiButSetFunc(but, sca_move_actuator, act, NULL);
-                                               but= uiDefBut(block, LABEL, 0, act->name, (short)(xco+112), yco, (short)(width-156), 19, act, 0, 0, 0, 0, "Actuator name");
+                                               but= uiDefBut(block, LABEL, 0, act->name, (short)(xco+112), yco, (short)(width-(pin?156:134)), 19, act, 0, 0, 0, 0, "Actuator name");
                                                uiButSetFunc(but, sca_move_actuator, act, NULL);
                                                ycoo= yco;
                                        }