[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [51378] trunk/blender: code cleanup: add check spelling osl
Campbell Barton
ideasman42 at gmail.com
Wed Oct 17 03:53:32 CEST 2012
Revision: 51378
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=51378
Author: campbellbarton
Date: 2012-10-17 01:53:29 +0000 (Wed, 17 Oct 2012)
Log Message:
-----------
code cleanup: add check spelling osl
Modified Paths:
--------------
trunk/blender/GNUmakefile
trunk/blender/intern/cycles/kernel/osl/nodes/node_brightness.osl
trunk/blender/intern/cycles/kernel/osl/nodes/node_bump.osl
trunk/blender/source/tools/spell_check_source.py
trunk/blender/source/tools/spell_check_source_config.py
Modified: trunk/blender/GNUmakefile
===================================================================
--- trunk/blender/GNUmakefile 2012-10-17 01:47:37 UTC (rev 51377)
+++ trunk/blender/GNUmakefile 2012-10-17 01:53:29 UTC (rev 51378)
@@ -173,13 +173,14 @@
@echo " * test_style_osl_qtc - checks OpenShadingLanguage conforms with blenders style guide: http://wiki.blender.org/index.php/Dev:Doc/CodeStyle"
@echo ""
@echo "Static Source Code Checking (not associated with building blender)"
- @echo " * check_cppcheck - run blender source through cppcheck (C & C++)"
- @echo " * check_clang_array - run blender source through clang array checking script (C & C++)"
- @echo " * check_splint - run blenders source through splint (C only)"
- @echo " * check_sparse - run blenders source through sparse (C only)"
- @echo " * check_smatch - run blenders source through smatch (C only)"
- @echo " * check_spelling_c - check for spelling errors (C/C++ only)"
- @echo " * check_spelling_py - check for spelling errors (Python only)"
+ @echo " * check_cppcheck - run blender source through cppcheck (C & C++)"
+ @echo " * check_clang_array - run blender source through clang array checking script (C & C++)"
+ @echo " * check_splint - run blenders source through splint (C only)"
+ @echo " * check_sparse - run blenders source through sparse (C only)"
+ @echo " * check_smatch - run blenders source through smatch (C only)"
+ @echo " * check_spelling_c - check for spelling errors (OSL only)"
+ @echo " * check_spelling_osl - check for spelling errors (C/C++ only)"
+ @echo " * check_spelling_py - check for spelling errors (Python only)"
@echo ""
@echo "Utilities (not associated with building blender)"
@echo " * tbz - create a compressed svn export 'blender_archive.tar.bz2'"
@@ -293,6 +294,8 @@
check_spelling_c:
cd $(BUILD_DIR) ; PYTHONIOENCODING=utf_8 python3 $(BLENDER_DIR)/source/tools/spell_check_source.py $(BLENDER_DIR)/source
+check_spelling_osl:
+ cd $(BUILD_DIR) ; PYTHONIOENCODING=utf_8 python3 $(BLENDER_DIR)/source/tools/spell_check_source.py $(BLENDER_DIR)/intern/cycles/kernel/osl
# -----------------------------------------------------------------------------
# Utilities
Modified: trunk/blender/intern/cycles/kernel/osl/nodes/node_brightness.osl
===================================================================
--- trunk/blender/intern/cycles/kernel/osl/nodes/node_brightness.osl 2012-10-17 01:47:37 UTC (rev 51377)
+++ trunk/blender/intern/cycles/kernel/osl/nodes/node_brightness.osl 2012-10-17 01:53:29 UTC (rev 51378)
@@ -32,10 +32,10 @@
float bright_factor = Brightness / 100.0;
/*
- * The algorithm is by Werner D. Streidt
- * (http://visca.com/ffactory/archives/5-99/msg00021.html)
- * Extracted of OpenCV demhist.c
- */
+ * The algorithm is by Werner D. Streidt
+ * (http://visca.com/ffactory/archives/5-99/msg00021.html)
+ * Extracted of OpenCV demhist.c
+ */
if (Contrast > 0.0) {
a = (a < 0.0 ? 1.0 / a : 0.0);
Modified: trunk/blender/intern/cycles/kernel/osl/nodes/node_bump.osl
===================================================================
--- trunk/blender/intern/cycles/kernel/osl/nodes/node_bump.osl 2012-10-17 01:47:37 UTC (rev 51377)
+++ trunk/blender/intern/cycles/kernel/osl/nodes/node_bump.osl 2012-10-17 01:53:29 UTC (rev 51378)
@@ -18,7 +18,7 @@
#include "stdosl.h"
-/* "Bump Mapping Unparametrized Surfaces on the GPU"
+/* "Bump Mapping Unparameterized Surfaces on the GPU"
* Morten S. Mikkelsen, 2010 */
surface node_bump(
Modified: trunk/blender/source/tools/spell_check_source.py
===================================================================
--- trunk/blender/source/tools/spell_check_source.py 2012-10-17 01:47:37 UTC (rev 51377)
+++ trunk/blender/source/tools/spell_check_source.py 2012-10-17 01:53:29 UTC (rev 51378)
@@ -317,7 +317,7 @@
def is_source(filename):
ext = splitext(filename)[1]
- return (ext in {".c", ".inl", ".cpp", ".cxx", ".hpp", ".hxx", ".h"})
+ return (ext in {".c", ".inl", ".cpp", ".cxx", ".hpp", ".hxx", ".h", ".osl"})
for filepath in source_list(dirpath, is_source):
spell_check_comments(filepath)
Modified: trunk/blender/source/tools/spell_check_source_config.py
===================================================================
--- trunk/blender/source/tools/spell_check_source_config.py 2012-10-17 01:47:37 UTC (rev 51377)
+++ trunk/blender/source/tools/spell_check_source_config.py 2012-10-17 01:53:29 UTC (rev 51378)
@@ -87,6 +87,7 @@
# general computer graphics terms
"radiosity",
+ "reflectance",
"specular",
"nurbs",
"bicubic",
More information about the Bf-blender-cvs
mailing list