svn merge ^/trunk/blender -r46335:46340
1 tree conflict. Resolved: I deleted source/tools/GL. Then I checked out folder from trunk (revision 46340) Then I ran: resolve --accept working source/tools/GL
This commit is contained in:
@@ -354,7 +354,7 @@ public:
|
||||
|
||||
//! Calcs global transform of the offsets
|
||||
/*!
|
||||
Calcs the global transform for the joint offset for body A an B, and also calcs the agle differences between the bodies.
|
||||
Calcs the global transform for the joint offset for body A an B, and also calcs the angle differences between the bodies.
|
||||
\sa btGeneric6DofConstraint.getCalculatedTransformA , btGeneric6DofConstraint.getCalculatedTransformB, btGeneric6DofConstraint.calculateAngleInfo
|
||||
*/
|
||||
void calculateTransforms(const btTransform& transA,const btTransform& transB);
|
||||
|
||||
@@ -81,10 +81,12 @@ class TIME_HT_header(Header):
|
||||
|
||||
row = layout.row(align=True)
|
||||
row.prop(toolsettings, "use_keyframe_insert_auto", text="", toggle=True)
|
||||
row.prop(toolsettings, "use_keyframe_insert_keyingset", text="", toggle=True)
|
||||
if screen.is_animation_playing and toolsettings.use_keyframe_insert_auto:
|
||||
subsub = row.row()
|
||||
subsub.prop(toolsettings, "use_record_with_nla", toggle=True)
|
||||
if toolsettings.use_keyframe_insert_auto:
|
||||
row.prop(toolsettings, "use_keyframe_insert_keyingset", text="", toggle=True)
|
||||
|
||||
if screen.is_animation_playing:
|
||||
subsub = row.row()
|
||||
subsub.prop(toolsettings, "use_record_with_nla", toggle=True)
|
||||
|
||||
row = layout.row(align=True)
|
||||
row.prop_search(scene.keying_sets_all, "active", scene, "keying_sets_all", text="")
|
||||
|
||||
@@ -135,7 +135,9 @@ class ShowHideMenu():
|
||||
layout.operator("%s.hide" % self._operator_name, text="Hide Unselected").unselected = True
|
||||
|
||||
|
||||
class VIEW3D_MT_transform(Menu):
|
||||
# Standard transforms which apply to all cases
|
||||
# NOTE: this doesn't seem to be able to be used directly
|
||||
class VIEW3D_MT_transform_base(Menu):
|
||||
bl_label = "Transform"
|
||||
|
||||
# TODO: get rid of the custom text strings?
|
||||
@@ -156,22 +158,38 @@ class VIEW3D_MT_transform(Menu):
|
||||
layout.operator("transform.warp", text="Warp")
|
||||
layout.operator("transform.push_pull", text="Push/Pull")
|
||||
|
||||
|
||||
# Generic transform menu - geometry types
|
||||
class VIEW3D_MT_transform(VIEW3D_MT_transform_base):
|
||||
def draw(self, context):
|
||||
# base menu
|
||||
VIEW3D_MT_transform_base.draw(self, context)
|
||||
|
||||
# generic...
|
||||
layout = self.layout
|
||||
layout.separator()
|
||||
|
||||
layout.operator("transform.translate", text="Move Texture Space").texture_space = True
|
||||
layout.operator("transform.resize", text="Scale Texture Space").texture_space = True
|
||||
|
||||
|
||||
# Object-specific extensions to Transform menu
|
||||
class VIEW3D_MT_transform_object(VIEW3D_MT_transform_base):
|
||||
def draw(self, context):
|
||||
# base menu
|
||||
VIEW3D_MT_transform_base.draw(self, context)
|
||||
|
||||
# object-specific option follow...
|
||||
layout = self.layout
|
||||
layout.separator()
|
||||
|
||||
obj = context.object
|
||||
if obj.type == 'ARMATURE' and obj.mode in {'EDIT', 'POSE'} and obj.data.draw_type in {'BBONE', 'ENVELOPE'}:
|
||||
layout.operator("transform.transform", text="Scale Envelope/BBone").mode = 'BONE_SIZE'
|
||||
|
||||
if context.edit_object and context.edit_object.type == 'ARMATURE':
|
||||
layout.operator("armature.align")
|
||||
else:
|
||||
layout.operator_context = 'EXEC_REGION_WIN'
|
||||
layout.operator("transform.transform", text="Align to Transform Orientation").mode = 'ALIGN' # XXX see alignmenu() in edit.c of b2.4x to get this working
|
||||
layout.operator("transform.translate", text="Move Texture Space").texture_space = True
|
||||
layout.operator("transform.resize", text="Scale Texture Space").texture_space = True
|
||||
|
||||
layout.separator()
|
||||
|
||||
layout.operator_context = 'EXEC_REGION_WIN'
|
||||
layout.operator("transform.transform", text="Align to Transform Orientation").mode = 'ALIGN' # XXX see alignmenu() in edit.c of b2.4x to get this working
|
||||
|
||||
layout.separator()
|
||||
|
||||
@@ -191,6 +209,25 @@ class VIEW3D_MT_transform(Menu):
|
||||
layout.operator("object.anim_transforms_to_deltas")
|
||||
|
||||
|
||||
# Armature EditMode extensions to Transform menu
|
||||
class VIEW3D_MT_transform_armature(VIEW3D_MT_transform_base):
|
||||
def draw(self, context):
|
||||
# base menu
|
||||
VIEW3D_MT_transform_base.draw(self, context)
|
||||
|
||||
# armature specific extensions follow...
|
||||
layout = self.layout
|
||||
layout.separator()
|
||||
|
||||
obj = context.object
|
||||
if (obj.type == 'ARMATURE' and obj.mode in {'EDIT', 'POSE'} and
|
||||
obj.data.draw_type in {'BBONE', 'ENVELOPE'}):
|
||||
layout.operator("transform.transform", text="Scale Envelope/BBone").mode = 'BONE_SIZE'
|
||||
|
||||
if context.edit_object and context.edit_object.type == 'ARMATURE':
|
||||
layout.operator("armature.align")
|
||||
|
||||
|
||||
class VIEW3D_MT_mirror(Menu):
|
||||
bl_label = "Mirror"
|
||||
|
||||
@@ -704,7 +741,7 @@ class VIEW3D_MT_object(Menu):
|
||||
|
||||
layout.separator()
|
||||
|
||||
layout.menu("VIEW3D_MT_transform")
|
||||
layout.menu("VIEW3D_MT_transform_object")
|
||||
layout.menu("VIEW3D_MT_mirror")
|
||||
layout.menu("VIEW3D_MT_object_clear")
|
||||
layout.menu("VIEW3D_MT_object_apply")
|
||||
@@ -1322,7 +1359,7 @@ class VIEW3D_MT_pose(Menu):
|
||||
|
||||
layout.separator()
|
||||
|
||||
layout.menu("VIEW3D_MT_transform")
|
||||
layout.menu("VIEW3D_MT_transform_armature")
|
||||
|
||||
layout.menu("VIEW3D_MT_pose_transform")
|
||||
layout.menu("VIEW3D_MT_pose_apply")
|
||||
@@ -2077,7 +2114,7 @@ class VIEW3D_MT_edit_armature(Menu):
|
||||
edit_object = context.edit_object
|
||||
arm = edit_object.data
|
||||
|
||||
layout.menu("VIEW3D_MT_transform")
|
||||
layout.menu("VIEW3D_MT_transform_armature")
|
||||
layout.menu("VIEW3D_MT_mirror")
|
||||
layout.menu("VIEW3D_MT_snap")
|
||||
layout.menu("VIEW3D_MT_edit_armature_roll")
|
||||
|
||||
@@ -383,8 +383,11 @@ static void rna_Object_parent_set(PointerRNA *ptr, PointerRNA value)
|
||||
{
|
||||
Object *ob = (Object*)ptr->data;
|
||||
Object *par = (Object*)value.data;
|
||||
|
||||
ED_object_parent(ob, par, ob->partype, ob->parsubstr);
|
||||
|
||||
/* NOTE: this dummy check here prevents this method causing weird runtime errors on mingw 4.6.2 */
|
||||
if (ob) {
|
||||
ED_object_parent(ob, par, ob->partype, ob->parsubstr);
|
||||
}
|
||||
}
|
||||
|
||||
static void rna_Object_parent_type_set(PointerRNA *ptr, int value)
|
||||
|
||||
Reference in New Issue
Block a user