diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-01-09 20:56:26 +0300 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-01-09 20:56:26 +0300 |
commit | e6f92e2b91db2c4cccf68e08af991043d3401ae6 (patch) | |
tree | 8b70a4130cf08a45e8afbe4f31f3e98e166dd51f /source/blender/editors | |
parent | 0ec378f3fea3be9235b5bc8cb976d6126ae808f5 (diff) | |
parent | 7bc46973d2f150faef4b210b19172ddbfd35c6ef (diff) |
Merged changes in the trunk up to revision 34201.
Diffstat (limited to 'source/blender/editors')
4 files changed, 12 insertions, 10 deletions
diff --git a/source/blender/editors/interface/interface_icons.c b/source/blender/editors/interface/interface_icons.c index 7d2f8e0d32a..ff041c18b00 100644 --- a/source/blender/editors/interface/interface_icons.c +++ b/source/blender/editors/interface/interface_icons.c @@ -851,7 +851,7 @@ static void icon_draw_rect(float x, float y, int w, int h, float UNUSED(aspect), /* sanity check */ if(w<=0 || h<=0 || w>2000 || h>2000) { printf("icon_draw_rect: icons are %i x %i pixels?\n", w, h); - BKE_assert(!"invalid icon size"); + BLI_assert(!"invalid icon size"); return; } diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c index 9c5f4067204..b2f74e435b1 100644 --- a/source/blender/editors/interface/resources.c +++ b/source/blender/editors/interface/resources.c @@ -981,7 +981,7 @@ void UI_make_axis_color(const unsigned char src_col[3], unsigned char dst_col[3] dst_col[2]= src_col[2]>209?255:src_col[2]+46; break; default: - BKE_assert(!"invalid axis arg"); + BLI_assert(!"invalid axis arg"); } } diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index 17e8b09ad68..8b77ff9bbdc 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -3326,13 +3326,15 @@ static void draw_particle(ParticleKey *state, int draw_as, short draw, float pix vec[1]=vec[2]=0.0; mul_qt_v3(state->rot,vec); if(draw_as==PART_DRAW_AXIS) { - cd[1]=cd[2]=cd[4]=cd[5]=0.0; - cd[0]=cd[3]=1.0; - cd[6]=cd[8]=cd[9]=cd[11]=0.0; - cd[7]=cd[10]=1.0; - cd[13]=cd[12]=cd[15]=cd[16]=0.0; - cd[14]=cd[17]=1.0; - pdd->cd+=18; + if(cd) { + cd[1]=cd[2]=cd[4]=cd[5]=0.0; + cd[0]=cd[3]=1.0; + cd[6]=cd[8]=cd[9]=cd[11]=0.0; + cd[7]=cd[10]=1.0; + cd[13]=cd[12]=cd[15]=cd[16]=0.0; + cd[14]=cd[17]=1.0; + pdd->cd+=18; + } copy_v3_v3(vec2,state->co); } diff --git a/source/blender/editors/transform/transform_manipulator.c b/source/blender/editors/transform/transform_manipulator.c index b4fe38b41ac..d69ba22585b 100644 --- a/source/blender/editors/transform/transform_manipulator.c +++ b/source/blender/editors/transform/transform_manipulator.c @@ -734,7 +734,7 @@ static void manipulator_setcolor(View3D *v3d, char axis, int colcode, unsigned c col[2]= 220; break; default: - BKE_assert(!"invalid axis arg"); + BLI_assert(!"invalid axis arg"); } } |