Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-06-05 00:11:09 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-06-05 00:11:09 +0400
commit5189356d587f51280c9486980d9f5e774338540e (patch)
tree321a4ea29852c82262d3af98ad551a24239fab23 /source/blender/editors/space_clip/clip_editor.c
parent510f98576a1b392226330dd854e049f712ddf62c (diff)
style cleanup
Diffstat (limited to 'source/blender/editors/space_clip/clip_editor.c')
-rw-r--r--source/blender/editors/space_clip/clip_editor.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/editors/space_clip/clip_editor.c b/source/blender/editors/space_clip/clip_editor.c
index 8bee06854e1..13e0a3c8b91 100644
--- a/source/blender/editors/space_clip/clip_editor.c
+++ b/source/blender/editors/space_clip/clip_editor.c
@@ -282,7 +282,7 @@ void ED_space_clip_mask_aspect(SpaceClip *sc, float *aspx, float *aspy)
*aspy *= (float)h;
#endif
- if(*aspx < *aspy) {
+ if (*aspx < *aspy) {
*aspy= *aspy / *aspx;
*aspx= 1.0f;
}
@@ -329,7 +329,7 @@ void ED_space_clip_aspect_dimension_aware(SpaceClip *sc, float *aspx, float *asp
*aspx *= (float)w;
*aspy *= (float)h;
- if(*aspx < *aspy) {
+ if (*aspx < *aspy) {
*aspy= *aspy / *aspx;
*aspx= 1.0f;
}
@@ -691,9 +691,11 @@ void ED_space_clip_set_mask(bContext *C, SpaceClip *sc, Mask *mask)
{
sc->mask = mask;
- if(sc->mask && sc->mask->id.us==0)
+ if (sc->mask && sc->mask->id.us==0) {
sc->clip->id.us = 1;
+ }
- if(C)
+ if (C) {
WM_event_add_notifier(C, NC_MASK|NA_SELECTED, mask);
+ }
}