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-07-22 22:40:50 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-07-22 22:40:50 +0400
commit76bea854b6910ed64c94e6b34c531a150ffcb361 (patch)
tree3b02bdcc02ea682eb5d3037e371b34f2b0b9dd24 /source/blender/python
parentea229638a007bdcf8155fc3f8b8baef96c893f0f (diff)
code cleanup: replace cos(M_PI / 4) and sin(M_PI / 4) with M_SQRT1_2 define
also some minor style cleanup.
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/generic/bpy_internal_import.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/generic/bpy_internal_import.c b/source/blender/python/generic/bpy_internal_import.c
index d4158210cc8..b9ef4b056ad 100644
--- a/source/blender/python/generic/bpy_internal_import.c
+++ b/source/blender/python/generic/bpy_internal_import.c
@@ -157,7 +157,8 @@ PyObject *bpy_text_import_name(const char *name, int *found)
}
/* we know this cant be importable, the name is too long for blender! */
- if (namelen >= (MAX_ID_NAME - 2) - 3) return NULL;
+ if (namelen >= (MAX_ID_NAME - 2) - 3)
+ return NULL;
memcpy(txtname, name, namelen);
memcpy(&txtname[namelen], ".py", 4);