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>2011-04-29 10:59:18 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-29 10:59:18 +0400
commit3be303aa3e08c082a9963802137ebb4fd7922953 (patch)
treeef92012749acb4c2fdba2c161f828970898acdd3 /source/blender/editors/space_time
parent2cdb79239bdec497781baf7fe8309cf4b1a36308 (diff)
corrections for redundant null checks & transform printing a string into its self.
Diffstat (limited to 'source/blender/editors/space_time')
-rw-r--r--source/blender/editors/space_time/time_ops.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/source/blender/editors/space_time/time_ops.c b/source/blender/editors/space_time/time_ops.c
index 34380fe4fd6..e9559426b81 100644
--- a/source/blender/editors/space_time/time_ops.c
+++ b/source/blender/editors/space_time/time_ops.c
@@ -49,15 +49,15 @@
#include "time_intern.h"
/* ****************** Start/End Frame Operators *******************************/
-
static int time_set_sfra_exec (bContext *C, wmOperator *UNUSED(op))
{
Scene *scene= CTX_data_scene(C);
- int frame= CFRA;
-
+ int frame;
+
if (scene == NULL)
return OPERATOR_CANCELLED;
-
+
+ frame= CFRA;
/* if 'end frame' (Preview Range or Actual) is less than 'frame',
* clamp 'frame' to 'end frame'
*/
@@ -93,11 +93,13 @@ static void TIME_OT_start_frame_set (wmOperatorType *ot)
static int time_set_efra_exec (bContext *C, wmOperator *UNUSED(op))
{
Scene *scene= CTX_data_scene(C);
- int frame= CFRA;
-
+ int frame;
+
if (scene == NULL)
return OPERATOR_CANCELLED;
-
+
+ frame= CFRA;
+
/* if 'start frame' (Preview Range or Actual) is greater than 'frame',
* clamp 'frame' to 'end frame'
*/