NLA SoC: Merge from 2.5
authorJoshua Leung <aligorith@gmail.com>
Fri, 10 Jul 2009 01:57:55 +0000 (01:57 +0000)
committerJoshua Leung <aligorith@gmail.com>
Fri, 10 Jul 2009 01:57:55 +0000 (01:57 +0000)
21330 to 21469

27 files changed:
1  2 
release/ui/buttons_data_modifier.py
source/blender/blenloader/intern/readfile.c
source/blender/editors/include/ED_screen.h
source/blender/editors/include/UI_view2d.h
source/blender/editors/interface/view2d.c
source/blender/editors/screen/screen_ops.c
source/blender/editors/space_action/action_edit.c
source/blender/editors/space_action/action_ops.c
source/blender/editors/space_file/filesel.c
source/blender/editors/space_graph/graph_edit.c
source/blender/editors/space_graph/graph_ops.c
source/blender/editors/space_view3d/drawarmature.c
source/blender/editors/space_view3d/space_view3d.c
source/blender/editors/space_view3d/view3d_header.c
source/blender/editors/transform/transform.c
source/blender/editors/transform/transform.h
source/blender/editors/transform/transform_conversions.c
source/blender/editors/transform/transform_generics.c
source/blender/editors/transform/transform_ops.c
source/blender/makesdna/DNA_space_types.h
source/blender/makesrna/intern/makesrna.c
source/blender/makesrna/intern/rna_modifier.c
source/blender/makesrna/intern/rna_object.c
source/blender/makesrna/intern/rna_particle.c
source/blender/makesrna/intern/rna_scene.c
source/blender/makesrna/intern/rna_space.c
source/blender/python/generic/quat.c

Simple merge
@@@ -9238,17 -9146,12 +9230,19 @@@ static void do_versions(FileData *fd, L
  
                for(sce = main->scene.first; sce; sce = sce->id.next) {
                        ts= sce->toolsettings;
-                       if(ts->normalsize == 0.0) {
+                       if(ts->normalsize == 0.0 || !ts->uv_selectmode || ts->vgroup_weight == 0.0) {
                                ts->normalsize= 0.1f;
                                ts->selectmode= SCE_SELECT_VERTEX;
 +                              
 +                              /* autokeying - setting should be taken from the user-prefs
 +                               * but the userprefs version may not have correct flags set 
 +                               * (i.e. will result in blank box when enabled)
 +                               */
                                ts->autokey_mode= U.autokey_mode;
 +                              if (ts->autokey_mode == 0) 
 +                                      ts->autokey_mode= 2; /* 'add/replace' but not on */
+                               ts->uv_selectmode= UV_SELECT_VERTEX;
+                               ts->vgroup_weight= 1.0f;
                        }
                }
        }
  #include "BKE_report.h"
  #include "BKE_utildefines.h"
  
 +#include "UI_interface.h"
  #include "UI_view2d.h"
  
- #include "BIF_transform.h"
  #include "ED_anim_api.h"
  #include "ED_keyframing.h"
  #include "ED_keyframes_draw.h"
  #include "ED_keyframing.h"
  #include "ED_keyframes_edit.h"
  #include "ED_object.h"
 +#include "ED_markers.h"
  #include "ED_mesh.h"
+ #include "ED_retopo.h"
  #include "ED_types.h"
  #include "ED_uvedit.h"
  #include "ED_view3d.h"
@@@ -2990,9 -2805,10 +2994,10 @@@ static int count_gplayer_frames(bGPDlay
        
        return count;
  }
+ #endif
  
  /* This function assigns the information to transdata */
 -static void TimeToTransData(TransData *td, float *time, Object *ob)
 +static void TimeToTransData(TransData *td, float *time, AnimData *adt)
  {
        /* memory is calloc'ed, so that should zero everything nicely for us */
        td->val = time;
@@@ -89,8 -89,8 +88,9 @@@
  #include "ED_armature.h"
  #include "ED_image.h"
  #include "ED_keyframing.h"
 +#include "ED_markers.h"
  #include "ED_mesh.h"
+ #include "ED_retopo.h"
  #include "ED_space_api.h"
  #include "ED_uvedit.h"
  #include "ED_view3d.h"
@@@ -602,32 -627,19 +627,32 @@@ void transform_keymap_for_space(struct 
                                // XXX the 'mode' identifier here is not quite right
                        km= WM_keymap_add_item(keymap, "TFM_OT_transform", EKEY, KM_PRESS, 0, 0);
                        RNA_int_set(km->ptr, "mode", TFM_TIME_EXTEND);
-                       
                        km = WM_keymap_add_item(keymap, "TFM_OT_rotation", RKEY, KM_PRESS, 0, 0);
-                       
                        km = WM_keymap_add_item(keymap, "TFM_OT_resize", SKEY, KM_PRESS, 0, 0);
                        break;
 +              case SPACE_NLA:
 +                      km= WM_keymap_add_item(keymap, "TFM_OT_transform", GKEY, KM_PRESS, 0, 0);
 +                      RNA_int_set(km->ptr, "mode", TFM_TRANSLATION);
 +                      
 +                      km= WM_keymap_add_item(keymap, "TFM_OT_transform", EVT_TWEAK_S, KM_ANY, 0, 0);
 +                      RNA_int_set(km->ptr, "mode", TFM_TRANSLATION);
 +                      
 +                      km= WM_keymap_add_item(keymap, "TFM_OT_transform", EKEY, KM_PRESS, 0, 0);
 +                      RNA_int_set(km->ptr, "mode", TFM_TIME_EXTEND);
 +                      
 +                      km= WM_keymap_add_item(keymap, "TFM_OT_transform", SKEY, KM_PRESS, 0, 0);
 +                      RNA_int_set(km->ptr, "mode", TFM_TIME_SCALE);
 +                      break;
                case SPACE_NODE:
                        km= WM_keymap_add_item(keymap, "TFM_OT_translation", GKEY, KM_PRESS, 0, 0);
-                       
                        km= WM_keymap_add_item(keymap, "TFM_OT_translation", EVT_TWEAK_A, KM_ANY, 0, 0);
                        km= WM_keymap_add_item(keymap, "TFM_OT_translation", EVT_TWEAK_S, KM_ANY, 0, 0);
-                       
                        km = WM_keymap_add_item(keymap, "TFM_OT_rotation", RKEY, KM_PRESS, 0, 0);
-                       
                        km = WM_keymap_add_item(keymap, "TFM_OT_resize", SKEY, KM_PRESS, 0, 0);
                        break;
                case SPACE_SEQ:
Simple merge