[Bf-blender-cvs] [0b34987] master: Fix T48212: Typos in bpy enum props examples.

Bastien Montagne noreply at git.blender.org
Thu Apr 21 12:17:58 CEST 2016


Commit: 0b349871d81d61637722d775302a7505b515dd8a
Author: Bastien Montagne
Date:   Thu Apr 21 12:16:32 2016 +0200
Branches: master
https://developer.blender.org/rB0b349871d81d61637722d775302a7505b515dd8a

Fix T48212: Typos in bpy enum props examples.

===================================================================

M	doc/python_api/examples/bpy.props.3.py
M	doc/python_api/examples/bpy.props.5.py

===================================================================

diff --git a/doc/python_api/examples/bpy.props.3.py b/doc/python_api/examples/bpy.props.3.py
index e0b2cf4..807edde 100644
--- a/doc/python_api/examples/bpy.props.3.py
+++ b/doc/python_api/examples/bpy.props.3.py
@@ -20,7 +20,7 @@ bpy.types.Scene.my_settings = \
     bpy.props.CollectionProperty(type=SceneSettingItem)
 
 # Assume an armature object selected
-print("Adding 3 values!")
+print("Adding 2 values!")
 
 my_item = bpy.context.scene.my_settings.add()
 my_item.name = "Spam"
diff --git a/doc/python_api/examples/bpy.props.5.py b/doc/python_api/examples/bpy.props.5.py
index 4e9d61d..87741cb 100644
--- a/doc/python_api/examples/bpy.props.5.py
+++ b/doc/python_api/examples/bpy.props.5.py
@@ -48,9 +48,9 @@ bpy.types.Scene.test_array = bpy.props.BoolVectorProperty(size=2, get=get_array,
 # Note: the getter/setter callback must use integer identifiers!
 test_items = [
     ("RED", "Red", "", 1),
-    ("GREEN", "Red", "", 2),
-    ("BLUE", "Red", "", 3),
-    ("YELLOW", "Red", "", 4),
+    ("GREEN", "Green", "", 2),
+    ("BLUE", "Blue", "", 3),
+    ("YELLOW", "Yellow", "", 4),
     ]




More information about the Bf-blender-cvs mailing list