[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43156] trunk/blender/release/scripts/ startup/bl_ui/space_logic.py: logic editor ui adjustment, all gameprop types are replaced by the ob.data.body (not only Text)

Dalai Felinto dfelinto at gmail.com
Thu Jan 5 09:09:07 CET 2012


Revision: 43156
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43156
Author:   dfelinto
Date:     2012-01-05 08:08:58 +0000 (Thu, 05 Jan 2012)
Log Message:
-----------
logic editor ui adjustment, all gameprop types are replaced by the ob.data.body (not only Text)

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/space_logic.py

Modified: trunk/blender/release/scripts/startup/bl_ui/space_logic.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_logic.py	2012-01-05 07:52:03 UTC (rev 43155)
+++ trunk/blender/release/scripts/startup/bl_ui/space_logic.py	2012-01-05 08:08:58 UTC (rev 43156)
@@ -51,10 +51,7 @@
                 # get the property from the body, not the game property
                 # note, dont do this - its too slow and body can potentually be a really long string.
                 # row.prop(ob.data, "body", text="")
-                if prop.type == 'STRING':
-                    row.label("*See Font Object*")
-                else:
-                    row.prop(prop, "value", text="", toggle=True)
+                row.label("See Font Object")
             else:
                 props = layout.operator("object.game_property_new", text="Add Text Game Property", icon='ZOOMIN')
                 props.name = 'Text'



More information about the Bf-blender-cvs mailing list