[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [37592] trunk/blender/release/scripts/ startup/bl_ui: Fix #27660: texture space panel was missing for curve & metaballs, now they
Brecht Van Lommel
brechtvanlommel at pandora.be
Fri Jun 17 15:53:48 CEST 2011
Revision: 37592
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37592
Author: blendix
Date: 2011-06-17 13:53:47 +0000 (Fri, 17 Jun 2011)
Log Message:
-----------
Fix #27660: texture space panel was missing for curve & metaballs, now they
have same panel as mesh. Patch by Ronan Ducluzeau, thanks!
Modified Paths:
--------------
trunk/blender/release/scripts/startup/bl_ui/properties_data_curve.py
trunk/blender/release/scripts/startup/bl_ui/properties_data_metaball.py
Modified: trunk/blender/release/scripts/startup/bl_ui/properties_data_curve.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_data_curve.py 2011-06-17 13:02:23 UTC (rev 37591)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_data_curve.py 2011-06-17 13:53:47 UTC (rev 37592)
@@ -112,14 +112,25 @@
sub.prop(curve, "use_fill_front")
sub.prop(curve, "use_fill_back")
col.prop(curve, "use_fill_deform", text="Fill Deformed")
+
+class DATA_PT_curve_texture_space(CurveButtonsPanel, bpy.types.Panel):
+ bl_label = "Texture Space"
+ bl_options = {'DEFAULT_CLOSED'}
+ COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
+
+ def draw(self, context):
+ layout = self.layout
+
+ ob = context.object
+ curve = context.curve
- col.label(text="Textures:")
- col.prop(curve, "use_uv_as_generated")
- col.prop(curve, "use_auto_texspace")
+ row = layout.row()
+ row.prop(curve, "use_auto_texspace")
+ row.prop(curve, "use_uv_as_generated")
row = layout.row()
- row.column().prop(curve, "texspace_location")
- row.column().prop(curve, "texspace_size")
+ row.column().prop(curve, "texspace_location", text="Location")
+ row.column().prop(curve, "texspace_size", text="Size")
class DATA_PT_geometry_curve(CurveButtonsPanel, bpy.types.Panel):
Modified: trunk/blender/release/scripts/startup/bl_ui/properties_data_metaball.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_data_metaball.py 2011-06-17 13:02:23 UTC (rev 37591)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_data_metaball.py 2011-06-17 13:53:47 UTC (rev 37592)
@@ -71,9 +71,22 @@
layout.label(text="Update:")
layout.prop(mball, "update_method", expand=True)
+
+class DATA_PT_mball_texture_space(DataButtonsPanel, bpy.types.Panel):
+ bl_label = "Texture Space"
+ bl_options = {'DEFAULT_CLOSED'}
+ COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
+
+ def draw(self, context):
+ layout = self.layout
+
+ mball = context.meta_ball
+
+ layout.prop(mball, "use_auto_texspace")
+
row = layout.row()
- row.column().prop(mball, "texspace_location")
- row.column().prop(mball, "texspace_size")
+ row.column().prop(mball, "texspace_location", text="Location")
+ row.column().prop(mball, "texspace_size", text="Size")
class DATA_PT_metaball_element(DataButtonsPanel, bpy.types.Panel):
@@ -122,4 +135,4 @@
_property_type = bpy.types.MetaBall
if __name__ == "__main__": # only for live edit.
- bpy.utils.register_module(__name__)
+ bpy.utils.register_module(__name__)
\ No newline at end of file
More information about the Bf-blender-cvs
mailing list