From db85f0f39a38366ba55df5a27906bff8e87395d7 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Wed, 5 Mar 2008 03:59:44 +0000 Subject: [PATCH] * Patch by Leandro Inocencio (cesio) to redraw Action Editor after hiding/unhiding bones * Fixes for compiler warnings --- source/blender/src/editaction.c | 1 - source/blender/src/editarmature.c | 2 ++ source/creator/creator.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source/blender/src/editaction.c b/source/blender/src/editaction.c index 8032adcf975..4b5f2d1cbce 100644 --- a/source/blender/src/editaction.c +++ b/source/blender/src/editaction.c @@ -3919,7 +3919,6 @@ void expand_obscuregroups_action (void) bAction *act; bActionChannel *achan; - short mode= 1; /* Get the selected action, exit if none are selected */ data = get_action_context(&datatype); diff --git a/source/blender/src/editarmature.c b/source/blender/src/editarmature.c index d85e789aa23..55ed6252dae 100644 --- a/source/blender/src/editarmature.c +++ b/source/blender/src/editarmature.c @@ -3479,6 +3479,7 @@ void hide_unselected_pose_bones(void) allqueue(REDRAWVIEW3D, 0); allqueue(REDRAWBUTSEDIT, 0); + allqueue(REDRAWACTION, 0); BIF_undo_push("Hide Unselected Bone"); } @@ -3511,6 +3512,7 @@ void show_all_pose_bones(void) allqueue(REDRAWVIEW3D, 0); allqueue(REDRAWBUTSEDIT, 0); + allqueue(REDRAWACTION, 0); BIF_undo_push("Reveal Bones"); } diff --git a/source/creator/creator.c b/source/creator/creator.c index 8562fc3d7d4..a23a59ccba0 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -245,7 +245,7 @@ extern void winlay_get_screensize(int *width_r, int *height_r); int main(int argc, char **argv) { - int a, i, stax, stay, sizx, sizy; + int a, i, stax=0, stay=0, sizx, sizy; SYS_SystemHandle syshandle; Scene *sce;