[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33465] trunk/blender/release/scripts/ui/ properties_data_mesh.py: Bugfix #25033

Ton Roosendaal ton at blender.org
Sat Dec 4 12:34:26 CET 2010


Revision: 33465
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33465
Author:   ton
Date:     2010-12-04 12:34:26 +0100 (Sat, 04 Dec 2010)

Log Message:
-----------
Bugfix #25033

Texture face options like "two side" were invisible, unless the
top bar "render engine" was set to Game Engine.
This is confusing, since 3d window does draw these options well.

Added back panel to show default, but with a label warning that
the options are not supported for render.

Modified Paths:
--------------
    trunk/blender/release/scripts/ui/properties_data_mesh.py

Modified: trunk/blender/release/scripts/ui/properties_data_mesh.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_data_mesh.py	2010-12-04 10:06:54 UTC (rev 33464)
+++ trunk/blender/release/scripts/ui/properties_data_mesh.py	2010-12-04 11:34:26 UTC (rev 33465)
@@ -286,7 +286,7 @@
         ob = context.active_object
         rd = context.scene.render
 
-        return (context.mode == 'EDIT_MESH') and (rd.engine == 'BLENDER_GAME') and ob and ob.type == 'MESH'
+        return (context.mode == 'EDIT_MESH') and ob and ob.type == 'MESH'
 
     def draw(self, context):
         layout = self.layout
@@ -297,9 +297,12 @@
         tf = me.faces.active_tface
 
         if tf:
+            if context.scene.render.engine != 'BLENDER_GAME':
+                col.label(text="Options only supported in Game Engine")
+
             split = layout.split()
             col = split.column()
-
+			
             col.prop(tf, "use_image")
             col.prop(tf, "use_light")
             col.prop(tf, "hide")





More information about the Bf-blender-cvs mailing list