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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-02-12 14:23:06 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-02-12 14:23:06 +0400
commitbbff6787bc8f13c7393690b25aae761789673b03 (patch)
tree249bd6e92ba6b1212a2b971f4026e4a029bf5bae /release
parent6bfd6c01fd226faa9583b9214e4f85f773a85c16 (diff)
Fix #30132: "Add Game Property" works incorrect after "Add Text Game Property"
Issues was caused by operator props "presets" which was reusing name of property on every run of OBJECT_OT_game_property_new. This run into conflict with how text property is determining -- it's stupid name comparsion which worked unexpectable after adding and removing text property. Solved by using empty (default) name for game_property_new when crating game property.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_logic.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_logic.py b/release/scripts/startup/bl_ui/space_logic.py
index 1e68b41c645..846169b3339 100644
--- a/release/scripts/startup/bl_ui/space_logic.py
+++ b/release/scripts/startup/bl_ui/space_logic.py
@@ -57,7 +57,8 @@ class LOGIC_PT_properties(Panel):
props.name = 'Text'
props.type = 'STRING'
- layout.operator("object.game_property_new", text="Add Game Property", icon='ZOOMIN')
+ props = layout.operator("object.game_property_new", text="Add Game Property", icon='ZOOMIN')
+ props.name = ''
for i, prop in enumerate(game.properties):