#NEWLINE# def draw( self , context ) : #NEWLINE# #INDENT# if ( context . mode == 'EDIT_ARMATURE' ) : #NEWLINE# #INDENT# edit_bone = context . active_bone #NEWLINE# pose_bone = context . active_object . pose . bones [ edit_bone . name ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# pose_bone = context . active_pose_bone #NEWLINE# #UNINDENT# layout = self . layout #NEWLINE# c = layout . column ( align = True ) #NEWLINE# if pose_bone . mmd_bone . is_additional_transform_dirty : #NEWLINE# #INDENT# c . label ( text = 'Changes has not been applied.' , icon = 'ERROR' ) #NEWLINE# #UNINDENT# row = c . row ( ) #NEWLINE# row . prop ( pose_bone . mmd_bone , 'has_additional_rotation' , text = 'Rotation' ) #NEWLINE# row . prop ( pose_bone . mmd_bone , 'has_additional_location' , text = 'Location' ) #NEWLINE# c = layout . column ( align = True ) #NEWLINE# c . prop_search ( pose_bone . mmd_bone , 'additional_transform_bone' , pose_bone . id_data . pose , 'bones' , icon = 'BONE_DATA' , text = '' ) #NEWLINE# c . prop ( pose_bone . mmd_bone , 'additional_transform_influence' , text = 'Influence' )